Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!newsfeed.stanford.edu!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Displaying images on GUI
Date: Sat, 2 Feb 2008 07:52:41 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 37
Message-ID: <fo17g9$733$1@canopus.cc.umanitoba.ca>
References: <fo11jj$652$1@fred.mathworks.com> <fo15j3$i0v$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1201938761 7267 192.70.172.160 (2 Feb 2008 07:52:41 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Sat, 2 Feb 2008 07:52:41 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:448896


In article <fo15j3$i0v$1@fred.mathworks.com>,
Mamata Kukreja <mamata_kukreja@yahoo.com> wrote:
>"Mamata Kukreja" <mamata_kukreja@yahoo.com> wrote in message
><fo11jj$652$1@fred.mathworks.com>...

>> I have to read images from a folder and display them on the
>> GUI .. If there are fewer images it is fine to display all
>> on one page .. 
>> but if the number exceeds to 50 or more .. how can they be
>> displayed .. is there a scroll bar provision .. any other 
>> idea ..

>????

You only waited 1 hour and 8 minutes before posting your ???? followup,
and your original posting was at 20 after midnight Central time
(i.e., the middle of North America) -- so after one in the morning
in eastern North America where more than half the population is.

Pretty much the same question has been answered in the past, and
the solution could have been found with a search engine request
to look for information about matlab gui scrollbar .

To recap:

Create a uipanel() on your figure, the size of the viewing area.
Create a second uipanel() whose Parent is the first uipanel,
and which is big enough to contain all of the data. Draw your
images, making sure that their Parent is the second uipanel.
Now configure the Callback on your scrollbar so that it changes
the Position of the second uipanel. The edges of the first
uipanel will "clip" the visibility of the second uipanel so that
only the portion of the second uipanel that is behind the
"window" that is the size of the first uipanel will be visible.
-- 
   "Any sufficiently advanced bug is indistinguishable from a feature."
   -- Rich Kulawiec