Thread Subject: How to scroll uipanel?

Subject: How to scroll uipanel?

From: Munie Ahmad

Date: 6 Mar, 2007 11:04:41

Message: 1 of 3

Hi there, anyone knows how to make uipanel scrolling down because I
want to insert a large number of images and I want to use slider to
make it scroll. how to do that? pls help me with this.. thanks :)

Subject: How to scroll uipanel?

From: Titus

Date: 6 Mar, 2007 17:33:24

Message: 2 of 3

Hi,
you probably need to do it yourself, but shouldn't be too difficult:
- add a usual slider
- use subplot to e.g. display 5x5 images
for i=1:5
  for j=1:5
    im(i,j) = image(...);
  end
end
- use the callback of the slider to show different images, something like
for i=1:5
  for j=1:5
    set(im(i,j), 'cdata', <imagevalues of image(i+slidervalue, j)>
  end
end

Titus

"Munie Ahmad" <miz.jaggy18@gmail.com> schrieb im Newsbeitrag
news:ef4fa8d.-1@webcrossing.raydaftYaTP...
> Hi there, anyone knows how to make uipanel scrolling down because I
> want to insert a large number of images and I want to use slider to
> make it scroll. how to do that? pls help me with this.. thanks :)


Subject: How to scroll uipanel?

From: Munie Ahmad

Date: 7 Mar, 2007 22:20:04

Message: 3 of 3

Hi Titus, thank you very much for your solution, but unfortunately I
cannot get it :( This is what I'm doing now:

hf=figure('Visible','Off');
for i=1:30
im(i)=subplot(5,6,i);
imshow(dicomread(dicominfo(dbimageID(sorted(i,2),:))),'DisplayRange',[
]);
end
hn=copyobj(im,handles.uipanel2);
close(hf);

As for now, I only use single for-loop, and I copied the subplots to
uipanel. How can I apply your solution to mine? for slider callback,
what do u mean by "imagevalues of image"?

 Titus wrote:
>
>
> Hi,
> you probably need to do it yourself, but shouldn't be too
> difficult:
> - add a usual slider
> - use subplot to e.g. display 5x5 images
> for i=1:5
> for j=1:5
> im(i,j) = image(...);
> end
> end
> - use the callback of the slider to show different images,
> something like
> for i=1:5
> for j=1:5
> set(im(i,j), 'cdata', <imagevalues of image(i+slidervalue,
j)>
> end
> end
>
> Titus
>
> "Munie Ahmad" <miz.jaggy18@gmail.com> schrieb im Newsbeitrag
> news:ef4fa8d.-1@webcrossing.raydaftYaTP...
>> Hi there, anyone knows how to make uipanel scrolling down
because
> I
>> want to insert a large number of images and I want to use
slider
> to
>> make it scroll. how to do that? pls help me with this.. thanks
:)
>
>
>
>

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com