Path: news.mathworks.com!not-for-mail
From: "Titus" <titus.edelhofer@mathworks.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to scroll uipanel?
Date: Tue, 6 Mar 2007 17:33:24 +0100
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <esk54l$8fr$1@fred.mathworks.com>
References: <ef4fa8d.-1@webcrossing.raydaftYaTP>
NNTP-Posting-Host: de-edelhoft-x.ac.mathworks.de
X-Trace: fred.mathworks.com 1173198805 8699 172.16.75.150 (6 Mar 2007 16:33:25 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 6 Mar 2007 16:33:25 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
Xref: news.mathworks.com comp.soft-sys.matlab:395883



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