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

Contact us at files@mathworks.com