From: "Munie Ahmad" <miz.jaggy18@gmail.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to scroll uipanel?
Message-ID: <ef4fa8d.1@webcrossing.raydaftYaTP>
Date: Wed, 7 Mar 2007 22:20:04 -0500
References: <ef4fa8d.-1@webcrossing.raydaftYaTP> <esk54l$8fr$1@fred.mathworks.com>
Lines: 54
NNTP-Posting-Host: 203.106.65.82
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:396186



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
:)
>
>
>
>