<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859</link>
    <title>MATLAB Central Newsreader - Putting a progress bar on a GUI - sorry, you're out of luck</title>
    <description>Feed for thread: Putting a progress bar on a GUI - sorry, you're out of luck</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 11 Dec 2008 15:13:20 -0500</pubDate>
      <title>Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#616417</link>
      <author>ImageAnalyst</author>
      <description>How can I put a progress bar onto my own custom  GUI?&lt;br&gt;
&lt;br&gt;
I know Ash asked this on Sept. 30th, and Walter said to check out&lt;br&gt;
waitbar(), but this solution doesn't really work.  For one thing,&lt;br&gt;
waitbar brings up a completely separate window - it is not placed on&lt;br&gt;
my main GUI.&lt;br&gt;
Secondly, and most annoyingly, when my GUI is  busy crunching away in&lt;br&gt;
it's loop and displaying stuff (like images) on the GUI, the GUI comes&lt;br&gt;
to the top and completely obscures the waitbar (which is now&lt;br&gt;
underneath).  I like to have my GUI's be full screen and a (bad)&lt;br&gt;
workaround would be to make the GUI non-fullscreen, and try to arrange&lt;br&gt;
the waitbar and GUI so that the waitbar does not get obscured, but&lt;br&gt;
this is not really a nice solution.&lt;br&gt;
&lt;br&gt;
Similarly there are several waitbar or progress bar functions uploaded&lt;br&gt;
to the File Exchange but they're all separate windows and can't be&lt;br&gt;
placed on your own custom GUI.  GET A CLUE MATHWORKS!  Look at the&lt;br&gt;
most commonly searched terms on the FileExchange:&lt;br&gt;
&quot;abort ascii ascii progress bar bar class completion eta example&lt;br&gt;
graphics gui gui tools interrupt merge meter ode process progress&lt;br&gt;
progress bar progress text status terminate time left utilities wait&lt;br&gt;
bar waitbar  &quot;&lt;br&gt;
13 of the 25 terms of them are various names for showing progress or&lt;br&gt;
completion.  Doesn't that tell you something?????!!!!!&lt;br&gt;
&lt;br&gt;
You should be able to have a progress bar placed on the GUI.  MATLAB&lt;br&gt;
only adds a built-in control every few years (most recently the table/&lt;br&gt;
grid control).  Why can't they add something as basic, simple, and&lt;br&gt;
useful as a progress bar.  I know I can add third party ActiveX&lt;br&gt;
controls but for crying out loud, MATLAB should add this fundamental&lt;br&gt;
essential control that will most likely get heavily user by their&lt;br&gt;
customer.  Like I said, over half the file exchange searches are for&lt;br&gt;
such a capability!!!&lt;br&gt;
&lt;br&gt;
So I guess the answer to my question is &quot;You can't - unless you use&lt;br&gt;
third party AcrtiveX controls&quot; so my question will probably turn into&lt;br&gt;
a request for enhancement for a future version.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Thu, 11 Dec 2008 16:05:18 -0500</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#616431</link>
      <author>Gavrilo Bozovic</author>
      <description>ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;a6b98772-2bb0-4a16-932a-918c1d1cf1c8@k19g2000yqg.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; How can I put a progress bar onto my own custom  GUI?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I know Ash asked this on Sept. 30th, and Walter said to check out&lt;br&gt;
&amp;gt; waitbar(), but this solution doesn't really work.  For one thing,&lt;br&gt;
&amp;gt; waitbar brings up a completely separate window - it is not placed on&lt;br&gt;
&amp;gt; my main GUI.&lt;br&gt;
&amp;gt; Secondly, and most annoyingly, when my GUI is  busy crunching away in&lt;br&gt;
&amp;gt; it's loop and displaying stuff (like images) on the GUI, the GUI comes&lt;br&gt;
&amp;gt; to the top and completely obscures the waitbar (which is now&lt;br&gt;
&amp;gt; underneath).  I like to have my GUI's be full screen and a (bad)&lt;br&gt;
&amp;gt; workaround would be to make the GUI non-fullscreen, and try to arrange&lt;br&gt;
&amp;gt; the waitbar and GUI so that the waitbar does not get obscured, but&lt;br&gt;
&amp;gt; this is not really a nice solution.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Similarly there are several waitbar or progress bar functions uploaded&lt;br&gt;
&amp;gt; to the File Exchange but they're all separate windows and can't be&lt;br&gt;
&amp;gt; placed on your own custom GUI.  GET A CLUE MATHWORKS!  Look at the&lt;br&gt;
&amp;gt; most commonly searched terms on the FileExchange:&lt;br&gt;
&amp;gt; &quot;abort ascii ascii progress bar bar class completion eta example&lt;br&gt;
&amp;gt; graphics gui gui tools interrupt merge meter ode process progress&lt;br&gt;
&amp;gt; progress bar progress text status terminate time left utilities wait&lt;br&gt;
&amp;gt; bar waitbar  &quot;&lt;br&gt;
&amp;gt; 13 of the 25 terms of them are various names for showing progress or&lt;br&gt;
&amp;gt; completion.  Doesn't that tell you something?????!!!!!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You should be able to have a progress bar placed on the GUI.  MATLAB&lt;br&gt;
&amp;gt; only adds a built-in control every few years (most recently the table/&lt;br&gt;
&amp;gt; grid control).  Why can't they add something as basic, simple, and&lt;br&gt;
&amp;gt; useful as a progress bar.  I know I can add third party ActiveX&lt;br&gt;
&amp;gt; controls but for crying out loud, MATLAB should add this fundamental&lt;br&gt;
&amp;gt; essential control that will most likely get heavily user by their&lt;br&gt;
&amp;gt; customer.  Like I said, over half the file exchange searches are for&lt;br&gt;
&amp;gt; such a capability!!!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; So I guess the answer to my question is &quot;You can't - unless you use&lt;br&gt;
&amp;gt; third party AcrtiveX controls&quot; so my question will probably turn into&lt;br&gt;
&amp;gt; a request for enhancement for a future version.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; ImageAnalyst&lt;br&gt;
&lt;br&gt;
A quick and dirty solution:&lt;br&gt;
&lt;br&gt;
h=waitbar(x);&lt;br&gt;
set(h,'windowstyle','modal');&lt;br&gt;
&lt;br&gt;
this way, the waitbar should always remain on top of the GUI. It's better than making the GUI smaller than fullsize, but still not very elegant...</description>
    </item>
    <item>
      <pubDate>Thu, 11 Dec 2008 16:19:47 -0500</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#616433</link>
      <author>Doug Schwarz</author>
      <description>In article &lt;br&gt;
&amp;lt;a6b98772-2bb0-4a16-932a-918c1d1cf1c8@k19g2000yqg.googlegroups.com&amp;gt;,&lt;br&gt;
&amp;nbsp;ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; How can I put a progress bar onto my own custom  GUI?&lt;br&gt;
&lt;br&gt;
Come on, you could have written it in barely more time than it took you &lt;br&gt;
to rant.  Okay, sometimes it's feels good to rant.  :-)&lt;br&gt;
&lt;br&gt;
Anyway, I wrote this for you.  Merry Christmas or &amp;lt;insert preferred &lt;br&gt;
holiday here&amp;gt;!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
function h = uiwaitbar(varargin)&lt;br&gt;
%uiwaitbar: A waitbar that can be embedded in a GUI figure.&lt;br&gt;
%  Syntax:&lt;br&gt;
%    POSITION = [20 20 200 20];  % Position of uiwaitbar in pixels.&lt;br&gt;
%    H = uiwaitbar(POSITION);&lt;br&gt;
%    for i = 1:100&lt;br&gt;
%        uiwaitbar(H,i/100)&lt;br&gt;
%    end&lt;br&gt;
&amp;nbsp;&lt;br&gt;
% written by Doug Schwarz, 11 December 2008&lt;br&gt;
&amp;nbsp;&lt;br&gt;
if ishandle(varargin{1})&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ax = varargin{1};&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;value = varargin{2};&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;p = get(ax,'Child');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x = get(p,'XData');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x(3:4) = value;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(p,'XData',x)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&lt;br&gt;
end&lt;br&gt;
&amp;nbsp;&lt;br&gt;
pos = varargin{1};&lt;br&gt;
bg_color = 'w';&lt;br&gt;
fg_color = 'r';&lt;br&gt;
h = axes('Units','pixels',...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Position',pos,...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'XLim',[0 1],'YLim',[0 1],...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'XTick',[],'YTick',[],...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Color',bg_color,...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'XColor',bg_color,'YColor',bg_color);&lt;br&gt;
patch([0 0 0 0],[0 1 1 0],fg_color,...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Parent',h,...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'EdgeColor','none',...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'EraseMode','none');&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Doug Schwarz&lt;br&gt;
dmschwarz&amp;ieee,org&lt;br&gt;
Make obvious changes to get real email address.</description>
    </item>
    <item>
      <pubDate>Thu, 11 Dec 2008 16:25:49 -0500</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#616434</link>
      <author>ImageAnalyst</author>
      <description>On Dec 11, 11:05=A0am, &quot;Gavrilo Bozovic&quot; &amp;lt;gavrilo.bozo...@helbling.ch&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt; ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote in message &amp;lt;a6b98772-2bb=&lt;br&gt;
0-4a16-932a-918c1d1cf...@k19g2000yqg.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; How can I put a progress bar onto my own custom =A0GUI?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I know Ash asked this on Sept. 30th, and Walter said to check out&lt;br&gt;
&amp;gt; &amp;gt; waitbar(), but this solution doesn't really work. =A0For one thing,&lt;br&gt;
&amp;gt; &amp;gt; waitbar brings up a completely separate window - it is not placed on&lt;br&gt;
&amp;gt; &amp;gt; my main GUI.&lt;br&gt;
&amp;gt; &amp;gt; Secondly, and most annoyingly, when my GUI is =A0busy crunching away in&lt;br&gt;
&amp;gt; &amp;gt; it's loop and displaying stuff (like images) on the GUI, the GUI comes&lt;br&gt;
&amp;gt; &amp;gt; to the top and completely obscures the waitbar (which is now&lt;br&gt;
&amp;gt; &amp;gt; underneath). =A0I like to have my GUI's be full screen and a (bad)&lt;br&gt;
&amp;gt; &amp;gt; workaround would be to make the GUI non-fullscreen, and try to arrange&lt;br&gt;
&amp;gt; &amp;gt; the waitbar and GUI so that the waitbar does not get obscured, but&lt;br&gt;
&amp;gt; &amp;gt; this is not really a nice solution.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Similarly there are several waitbar or progress bar functions uploaded&lt;br&gt;
&amp;gt; &amp;gt; to the File Exchange but they're all separate windows and can't be&lt;br&gt;
&amp;gt; &amp;gt; placed on your own custom GUI. =A0GET A CLUE MATHWORKS! =A0Look at the&lt;br&gt;
&amp;gt; &amp;gt; most commonly searched terms on the FileExchange:&lt;br&gt;
&amp;gt; &amp;gt; &quot;abort ascii ascii progress bar bar class completion eta example&lt;br&gt;
&amp;gt; &amp;gt; graphics gui gui tools interrupt merge meter ode process progress&lt;br&gt;
&amp;gt; &amp;gt; progress bar progress text status terminate time left utilities wait&lt;br&gt;
&amp;gt; &amp;gt; bar waitbar =A0&quot;&lt;br&gt;
&amp;gt; &amp;gt; 13 of the 25 terms of them are various names for showing progress or&lt;br&gt;
&amp;gt; &amp;gt; completion. =A0Doesn't that tell you something?????!!!!!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; You should be able to have a progress bar placed on the GUI. =A0MATLAB&lt;br&gt;
&amp;gt; &amp;gt; only adds a built-in control every few years (most recently the table/&lt;br&gt;
&amp;gt; &amp;gt; grid control). =A0Why can't they add something as basic, simple, and&lt;br&gt;
&amp;gt; &amp;gt; useful as a progress bar. =A0I know I can add third party ActiveX&lt;br&gt;
&amp;gt; &amp;gt; controls but for crying out loud, MATLAB should add this fundamental&lt;br&gt;
&amp;gt; &amp;gt; essential control that will most likely get heavily user by their&lt;br&gt;
&amp;gt; &amp;gt; customer. =A0Like I said, over half the file exchange searches are for&lt;br&gt;
&amp;gt; &amp;gt; such a capability!!!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; So I guess the answer to my question is &quot;You can't - unless you use&lt;br&gt;
&amp;gt; &amp;gt; third party AcrtiveX controls&quot; so my question will probably turn into&lt;br&gt;
&amp;gt; &amp;gt; a request for enhancement for a future version.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Regards,&lt;br&gt;
&amp;gt; &amp;gt; ImageAnalyst&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; A quick and dirty solution:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; h=3Dwaitbar(x);&lt;br&gt;
&amp;gt; set(h,'windowstyle','modal');&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; this way, the waitbar should always remain on top of the GUI. It's better=&lt;br&gt;
&amp;nbsp;than making the GUI smaller than fullsize, but still not very elegant...- =&lt;br&gt;
Hide quoted text -&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; - Show quoted text -&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------&lt;br&gt;
Gavrilo:&lt;br&gt;
Thanks for the tip.  I just tried it and it doesn't exactly work.  It&lt;br&gt;
does stay on top but there are tons of &quot;bonks.&quot;  It's weird, every&lt;br&gt;
time I put a breakpoint in the code, I can continue and there are no&lt;br&gt;
beeps/bonks but if I take the breakpoint out, there are tons of them.&lt;br&gt;
I tried to track it down a bit and it seems like it has something to&lt;br&gt;
do with calling the axes() command to set focus to different axes on&lt;br&gt;
my GUI.  Whenever I want to display an image or plot something I need&lt;br&gt;
to call the axes() function to make sure it happens in the desired&lt;br&gt;
axes.  I even tried calling figure(handles.figMainWindow) to set focus&lt;br&gt;
to my main GUI (instead of the waitbar) before I called the axes&lt;br&gt;
command but that didn't work.  I still get lots of annoying bonk&lt;br&gt;
sounds.&lt;br&gt;
- ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Thu, 11 Dec 2008 17:25:04 -0500</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#616440</link>
      <author>Darik </author>
      <description>ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;a6b98772-2bb0-4a16-932a-918c1d1cf1c8@k19g2000yqg.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; How can I put a progress bar onto my own custom  GUI?&lt;br&gt;
&amp;gt; [...]&lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; ImageAnalyst&lt;br&gt;
&lt;br&gt;
Check out Yair Altman's statusbar on the fex. It's got a progress bar.</description>
    </item>
    <item>
      <pubDate>Thu, 11 Dec 2008 18:17:05 -0500</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#616449</link>
      <author>ImageAnalyst</author>
      <description>On Dec 11, 11:19=A0am, Doug Schwarz &amp;lt;s...@sig.for.address.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; In article&lt;br&gt;
&amp;gt; &amp;lt;a6b98772-2bb0-4a16-932a-918c1d1cf...@k19g2000yqg.googlegroups.com&amp;gt;,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; =A0ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; How can I put a progress bar onto my own custom =A0GUI?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Come on, you could have written it in barely more time than it took you&lt;br&gt;
&amp;gt; to rant. =A0Okay, sometimes it's feels good to rant. =A0:-)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Anyway, I wrote this for you. =A0Merry Christmas or &amp;lt;insert preferred&lt;br&gt;
&amp;gt; holiday here&amp;gt;!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; function h =3D uiwaitbar(varargin)&lt;br&gt;
&amp;gt; %uiwaitbar: A waitbar that can be embedded in a GUI figure.&lt;br&gt;
&amp;gt; % =A0Syntax:&lt;br&gt;
&amp;gt; % =A0 =A0POSITION =3D [20 20 200 20]; =A0% Position of uiwaitbar in pixel=&lt;br&gt;
s.&lt;br&gt;
&amp;gt; % =A0 =A0H =3D uiwaitbar(POSITION);&lt;br&gt;
&amp;gt; % =A0 =A0for i =3D 1:100&lt;br&gt;
&amp;gt; % =A0 =A0 =A0 =A0uiwaitbar(H,i/100)&lt;br&gt;
&amp;gt; % =A0 =A0end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; % written by Doug Schwarz, 11 December 2008&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; if ishandle(varargin{1})&lt;br&gt;
&amp;gt; =A0 =A0 ax =3D varargin{1};&lt;br&gt;
&amp;gt; =A0 =A0 value =3D varargin{2};&lt;br&gt;
&amp;gt; =A0 =A0 p =3D get(ax,'Child');&lt;br&gt;
&amp;gt; =A0 =A0 x =3D get(p,'XData');&lt;br&gt;
&amp;gt; =A0 =A0 x(3:4) =3D value;&lt;br&gt;
&amp;gt; =A0 =A0 set(p,'XData',x)&lt;br&gt;
&amp;gt; =A0 =A0 return&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; pos =3D varargin{1};&lt;br&gt;
&amp;gt; bg_color =3D 'w';&lt;br&gt;
&amp;gt; fg_color =3D 'r';&lt;br&gt;
&amp;gt; h =3D axes('Units','pixels',...&lt;br&gt;
&amp;gt; =A0 =A0 'Position',pos,...&lt;br&gt;
&amp;gt; =A0 =A0 'XLim',[0 1],'YLim',[0 1],...&lt;br&gt;
&amp;gt; =A0 =A0 'XTick',[],'YTick',[],...&lt;br&gt;
&amp;gt; =A0 =A0 'Color',bg_color,...&lt;br&gt;
&amp;gt; =A0 =A0 'XColor',bg_color,'YColor',bg_color);&lt;br&gt;
&amp;gt; patch([0 0 0 0],[0 1 1 0],fg_color,...&lt;br&gt;
&amp;gt; =A0 =A0 'Parent',h,...&lt;br&gt;
&amp;gt; =A0 =A0 'EdgeColor','none',...&lt;br&gt;
&amp;gt; =A0 =A0 'EraseMode','none');&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; Doug Schwarz&lt;br&gt;
&amp;gt; dmschwarz&amp;ieee,org&lt;br&gt;
&amp;gt; Make obvious changes to get real email address.&lt;br&gt;
&lt;br&gt;
--------------------------------------------------&lt;br&gt;
Thanks Doug.  Works like a charm.  One additional note, to get rid of&lt;br&gt;
the waitbar, delete the handle:&lt;br&gt;
	% Get rid of the waitbar.&lt;br&gt;
	delete(hWaitBar);&lt;br&gt;
I originally tried to set the visibility to &quot;off&quot; but that didn't&lt;br&gt;
work.  So I tried deleting the handle and that works.&lt;br&gt;
&lt;br&gt;
It was a little bit of work to get it positioned correctly - not as&lt;br&gt;
easy as just dragging it out in GUIDE - but I did get it where I&lt;br&gt;
wanted by first placing a scroll bar on the figure, changing the units&lt;br&gt;
property from characters to pixels (even though my figure was&lt;br&gt;
normalized), noting the &quot;position&quot; property of the scroll bar, and&lt;br&gt;
copying that to your POSITION variable.&lt;br&gt;
&lt;br&gt;
I wasn't familiar with the &quot;patch()&quot; command, so I guess sometimes&lt;br&gt;
ranting does get good results - much faster than waiting for the new&lt;br&gt;
GUIDE, which they've been working on for quite a while with no&lt;br&gt;
announced ETA (hopefully it will be a major improvement over these&lt;br&gt;
tiny little interim improvements they've been making with the MATLAB&lt;br&gt;
releases).&lt;br&gt;
&lt;br&gt;
Thanks again,&lt;br&gt;
ImageAnalyst&lt;br&gt;
P.S. It would still be nice if such a control were built into GUIDE.</description>
    </item>
    <item>
      <pubDate>Thu, 11 Dec 2008 18:28:32 -0500</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#616453</link>
      <author>ImageAnalyst</author>
      <description>On Dec 11, 1:17=A0pm, ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Dec 11, 11:19=A0am, Doug Schwarz &amp;lt;s...@sig.for.address.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; In article&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;a6b98772-2bb0-4a16-932a-918c1d1cf...@k19g2000yqg.googlegroups.com&amp;gt;,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; =A0ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; How can I put a progress bar onto my own custom =A0GUI?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Come on, you could have written it in barely more time than it took you&lt;br&gt;
&amp;gt; &amp;gt; to rant. =A0Okay, sometimes it's feels good to rant. =A0:-)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Anyway, I wrote this for you. =A0Merry Christmas or &amp;lt;insert preferred&lt;br&gt;
&amp;gt; &amp;gt; holiday here&amp;gt;!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; function h =3D uiwaitbar(varargin)&lt;br&gt;
&amp;gt; &amp;gt; %uiwaitbar: A waitbar that can be embedded in a GUI figure.&lt;br&gt;
&amp;gt; &amp;gt; % =A0Syntax:&lt;br&gt;
&amp;gt; &amp;gt; % =A0 =A0POSITION =3D [20 20 200 20]; =A0% Position of uiwaitbar in pix=&lt;br&gt;
els.&lt;br&gt;
&amp;gt; &amp;gt; % =A0 =A0H =3D uiwaitbar(POSITION);&lt;br&gt;
&amp;gt; &amp;gt; % =A0 =A0for i =3D 1:100&lt;br&gt;
&amp;gt; &amp;gt; % =A0 =A0 =A0 =A0uiwaitbar(H,i/100)&lt;br&gt;
&amp;gt; &amp;gt; % =A0 =A0end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; % written by Doug Schwarz, 11 December 2008&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; if ishandle(varargin{1})&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 ax =3D varargin{1};&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 value =3D varargin{2};&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 p =3D get(ax,'Child');&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 x =3D get(p,'XData');&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 x(3:4) =3D value;&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 set(p,'XData',x)&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 return&lt;br&gt;
&amp;gt; &amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; pos =3D varargin{1};&lt;br&gt;
&amp;gt; &amp;gt; bg_color =3D 'w';&lt;br&gt;
&amp;gt; &amp;gt; fg_color =3D 'r';&lt;br&gt;
&amp;gt; &amp;gt; h =3D axes('Units','pixels',...&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 'Position',pos,...&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 'XLim',[0 1],'YLim',[0 1],...&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 'XTick',[],'YTick',[],...&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 'Color',bg_color,...&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 'XColor',bg_color,'YColor',bg_color);&lt;br&gt;
&amp;gt; &amp;gt; patch([0 0 0 0],[0 1 1 0],fg_color,...&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 'Parent',h,...&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 'EdgeColor','none',...&lt;br&gt;
&amp;gt; &amp;gt; =A0 =A0 'EraseMode','none');&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; --&lt;br&gt;
&amp;gt; &amp;gt; Doug Schwarz&lt;br&gt;
&amp;gt; &amp;gt; dmschwarz&amp;ieee,org&lt;br&gt;
&amp;gt; &amp;gt; Make obvious changes to get real email address.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --------------------------------------------------&lt;br&gt;
&amp;gt; Thanks Doug. =A0Works like a charm. =A0One additional note, to get rid of&lt;br&gt;
&amp;gt; the waitbar, delete the handle:&lt;br&gt;
&amp;gt; =A0 =A0 =A0 =A0 % Get rid of the waitbar.&lt;br&gt;
&amp;gt; =A0 =A0 =A0 =A0 delete(hWaitBar);&lt;br&gt;
&amp;gt; I originally tried to set the visibility to &quot;off&quot; but that didn't&lt;br&gt;
&amp;gt; work. =A0So I tried deleting the handle and that works.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It was a little bit of work to get it positioned correctly - not as&lt;br&gt;
&amp;gt; easy as just dragging it out in GUIDE - but I did get it where I&lt;br&gt;
&amp;gt; wanted by first placing a scroll bar on the figure, changing the units&lt;br&gt;
&amp;gt; property from characters to pixels (even though my figure was&lt;br&gt;
&amp;gt; normalized), noting the &quot;position&quot; property of the scroll bar, and&lt;br&gt;
&amp;gt; copying that to your POSITION variable.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I wasn't familiar with the &quot;patch()&quot; command, so I guess sometimes&lt;br&gt;
&amp;gt; ranting does get good results - much faster than waiting for the new&lt;br&gt;
&amp;gt; GUIDE, which they've been working on for quite a while with no&lt;br&gt;
&amp;gt; announced ETA (hopefully it will be a major improvement over these&lt;br&gt;
&amp;gt; tiny little interim improvements they've been making with the MATLAB&lt;br&gt;
&amp;gt; releases).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks again,&lt;br&gt;
&amp;gt; ImageAnalyst&lt;br&gt;
&amp;gt; P.S. It would still be nice if such a control were built into GUIDE.- Hid=&lt;br&gt;
e quoted text -&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; - Show quoted text -&lt;br&gt;
&lt;br&gt;
---------------------------------------&lt;br&gt;
An additional note:  because my main GUI had units of &quot;normalized&quot; so&lt;br&gt;
that everything would scale properly if the user maximized the window,&lt;br&gt;
the waitbar no longer was in the correct place if they did that&lt;br&gt;
(because the units were pixels).  I tried changing the units of the&lt;br&gt;
axes to &quot;normalized&quot; after they it was created but it still left the&lt;br&gt;
waitbar in the wrong place after maximizing.  So I changed the units&lt;br&gt;
to normalized when it was created with the axes command, and again&lt;br&gt;
found the position by placing a &quot;normalized-units&quot; scrollbar in the&lt;br&gt;
location that I wanted the waitbar, and then everything was fine.  It&lt;br&gt;
was in the right place when the window first came up and in the right&lt;br&gt;
place after the GUi was maximized.&lt;br&gt;
Thanks!</description>
    </item>
    <item>
      <pubDate>Fri, 17 Apr 2009 20:31:01 -0400</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#643583</link>
      <author>Glenn </author>
      <description>FYI, a progress bar can be implemented.&lt;br&gt;
Use a Slider Control with the Enable property set to Inactive. This prevents the slider from being moved by the user.&lt;br&gt;
Change the Value property of the control from inside your coding to indicate progress.&lt;br&gt;
The slider changes position according to the Value property.&lt;br&gt;
The Value property must be between the Min and Max properties of the Slider Control but these can also be changed if necessary.&lt;br&gt;
For progress labels (such as % complete) use a Static Text button just above the slider with text spaced appropriately so as to span the range of movement of the slider.&lt;br&gt;
&lt;br&gt;
ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;a6b98772-2bb0-4a16-932a-918c1d1cf1c8@k19g2000yqg.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; How can I put a progress bar onto my own custom  GUI?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I know Ash asked this on Sept. 30th, and Walter said to check out&lt;br&gt;
&amp;gt; waitbar(), but this solution doesn't really work.  For one thing,&lt;br&gt;
&amp;gt; waitbar brings up a completely separate window - it is not placed on&lt;br&gt;
&amp;gt; my main GUI.&lt;br&gt;
&amp;gt; Secondly, and most annoyingly, when my GUI is  busy crunching away in&lt;br&gt;
&amp;gt; it's loop and displaying stuff (like images) on the GUI, the GUI comes&lt;br&gt;
&amp;gt; to the top and completely obscures the waitbar (which is now&lt;br&gt;
&amp;gt; underneath).  I like to have my GUI's be full screen and a (bad)&lt;br&gt;
&amp;gt; workaround would be to make the GUI non-fullscreen, and try to arrange&lt;br&gt;
&amp;gt; the waitbar and GUI so that the waitbar does not get obscured, but&lt;br&gt;
&amp;gt; this is not really a nice solution.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Similarly there are several waitbar or progress bar functions uploaded&lt;br&gt;
&amp;gt; to the File Exchange but they're all separate windows and can't be&lt;br&gt;
&amp;gt; placed on your own custom GUI.  GET A CLUE MATHWORKS!  Look at the&lt;br&gt;
&amp;gt; most commonly searched terms on the FileExchange:&lt;br&gt;
&amp;gt; &quot;abort ascii ascii progress bar bar class completion eta example&lt;br&gt;
&amp;gt; graphics gui gui tools interrupt merge meter ode process progress&lt;br&gt;
&amp;gt; progress bar progress text status terminate time left utilities wait&lt;br&gt;
&amp;gt; bar waitbar  &quot;&lt;br&gt;
&amp;gt; 13 of the 25 terms of them are various names for showing progress or&lt;br&gt;
&amp;gt; completion.  Doesn't that tell you something?????!!!!!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You should be able to have a progress bar placed on the GUI.  MATLAB&lt;br&gt;
&amp;gt; only adds a built-in control every few years (most recently the table/&lt;br&gt;
&amp;gt; grid control).  Why can't they add something as basic, simple, and&lt;br&gt;
&amp;gt; useful as a progress bar.  I know I can add third party ActiveX&lt;br&gt;
&amp;gt; controls but for crying out loud, MATLAB should add this fundamental&lt;br&gt;
&amp;gt; essential control that will most likely get heavily user by their&lt;br&gt;
&amp;gt; customer.  Like I said, over half the file exchange searches are for&lt;br&gt;
&amp;gt; such a capability!!!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; So I guess the answer to my question is &quot;You can't - unless you use&lt;br&gt;
&amp;gt; third party AcrtiveX controls&quot; so my question will probably turn into&lt;br&gt;
&amp;gt; a request for enhancement for a future version.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Sat, 18 Apr 2009 01:18:11 -0400</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#643604</link>
      <author>Doug Schwarz</author>
      <description>In article &lt;br&gt;
&amp;lt;a6b98772-2bb0-4a16-932a-918c1d1cf1c8@k19g2000yqg.googlegroups.com&amp;gt;,&lt;br&gt;
&amp;nbsp;ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; How can I put a progress bar onto my own custom  GUI?&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
[snip]&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I have one that I've been working in my spare time that eventually will &lt;br&gt;
go up on the FEX.  It's not done, but give me a couple of days to at &lt;br&gt;
least make sure it's working and I'd be glad to send it to you.  It's a &lt;br&gt;
class using the new class syntax so you have to be using at least R2008a &lt;br&gt;
to run it.  I have tried to make it as much like a uicontrol as I can.&lt;br&gt;
&lt;br&gt;
Use it like this:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;h = uiwaitbar('Position',[20 100 200 16]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;for i = 1:100&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(h,'Value',i/100)&lt;br&gt;
&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&lt;br&gt;
Send me an email to confirm your email address.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Doug Schwarz&lt;br&gt;
dmschwarz&amp;ieee,org&lt;br&gt;
Make obvious changes to get real email address.</description>
    </item>
    <item>
      <pubDate>Sat, 18 Apr 2009 01:32:29 -0400</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#643605</link>
      <author>ImageAnalyst</author>
      <description>On Apr 17, 9:18=A0pm, Doug Schwarz &amp;lt;s...@sig.for.address.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; In article&lt;br&gt;
&amp;gt; &amp;lt;a6b98772-2bb0-4a16-932a-918c1d1cf...@k19g2000yqg.googlegroups.com&amp;gt;,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; =A0ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; How can I put a progress bar onto my own custom =A0GUI?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; [snip]&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have one that I've been working in my spare time that eventually will&lt;br&gt;
&amp;gt; go up on the FEX. =A0It's not done, but give me a couple of days to at&lt;br&gt;
&amp;gt; least make sure it's working and I'd be glad to send it to you. =A0It's a&lt;br&gt;
&amp;gt; class using the new class syntax so you have to be using at least R2008a&lt;br&gt;
&amp;gt; to run it. =A0I have tried to make it as much like a uicontrol as I can.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Use it like this:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; =A0 h =3D uiwaitbar('Position',[20 100 200 16]);&lt;br&gt;
&amp;gt; =A0 for i =3D 1:100&lt;br&gt;
&amp;gt; =A0 =A0 set(h,'Value',i/100)&lt;br&gt;
&amp;gt; =A0 end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Send me an email to confirm your email address.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; Doug Schwarz&lt;br&gt;
&amp;gt; dmschwarz&amp;ieee,org&lt;br&gt;
&amp;gt; Make obvious changes to get real email address.&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------------=&lt;br&gt;
--------&lt;br&gt;
Doug:&lt;br&gt;
I've been using the code you posted earlier in this thread.  It works&lt;br&gt;
nicer than any I saw on the FEX so far.  It's great that you're&lt;br&gt;
working on converting it from a snippet into a full-fledged class.&lt;br&gt;
Let me know (here) when it's done and I'll download it.&lt;br&gt;
&lt;br&gt;
Does the &quot;Position&quot; arg depend on whether the units property of the&lt;br&gt;
main figure are &quot;normalized,&quot; &quot;pixels,&quot; etc.?&lt;br&gt;
Thanks,&lt;br&gt;
ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Sat, 18 Apr 2009 01:35:20 -0400</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#643606</link>
      <author>ImageAnalyst</author>
      <description>On Apr 17, 4:31=A0pm, &quot;Glenn &quot; &amp;lt;JAG...@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; FYI, a progress bar can be implemented.&lt;br&gt;
&amp;gt; Use a Slider Control with the Enable property set to Inactive.&lt;br&gt;
[snip]&lt;br&gt;
------------------------------------------------------------------&lt;br&gt;
Glenn:&lt;br&gt;
Yes that's true, but Doug's solution is a much nicer looking solution,&lt;br&gt;
so I'll continue to use that.  By the way, I haven't yet downloaded&lt;br&gt;
R2009a - does that have a built-in progress bar?&lt;br&gt;
Thanks,&lt;br&gt;
ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Sat, 18 Apr 2009 05:49:57 -0400</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#643617</link>
      <author>Doug Schwarz</author>
      <description>In article &lt;br&gt;
&amp;lt;36d79543-ad5c-4de8-9011-652b115de6de@r37g2000yqn.googlegroups.com&amp;gt;,&lt;br&gt;
&amp;nbsp;ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; On Apr 17, 9:18</description>
    </item>
    <item>
      <pubDate>Fri, 24 Apr 2009 19:08:01 -0400</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#645240</link>
      <author>Glenn </author>
      <description>ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;2068a6ca-3a45-4564-ad90-0a92d8f92ff8@k8g2000yqn.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Apr 17, 4:31=A0pm, &quot;Glenn &quot; &amp;lt;JAG...@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; FYI, a progress bar can be implemented.&lt;br&gt;
&amp;gt; &amp;gt; Use a Slider Control with the Enable property set to Inactive.&lt;br&gt;
&amp;gt; [snip]&lt;br&gt;
&amp;gt; ------------------------------------------------------------------&lt;br&gt;
&amp;gt; Glenn:&lt;br&gt;
&amp;gt; Yes that's true, but Doug's solution is a much nicer looking solution,&lt;br&gt;
&amp;gt; so I'll continue to use that.  By the way, I haven't yet downloaded&lt;br&gt;
&amp;gt; R2009a - does that have a built-in progress bar?&lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; ImageAnalyst&lt;br&gt;
&lt;br&gt;
No it does not.</description>
    </item>
    <item>
      <pubDate>Tue, 26 May 2009 23:32:03 -0400</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#652603</link>
      <author>Travis </author>
      <description>&quot;Glenn &quot; &amp;lt;JAGGKG@hotmail.com&amp;gt; wrote in message &amp;lt;gsaou5$l8l$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; FYI, a progress bar can be implemented.&lt;br&gt;
&amp;gt; Use a Slider Control with the Enable property set to Inactive. This prevents the slider from being moved by the user.&lt;br&gt;
&amp;gt; Change the Value property of the control from inside your coding to indicate progress.&lt;br&gt;
&amp;gt; The slider changes position according to the Value property.&lt;br&gt;
&amp;gt; The Value property must be between the Min and Max properties of the Slider Control but these can also be changed if necessary.&lt;br&gt;
&amp;gt; For progress labels (such as % complete) use a Static Text button just above the slider with text spaced appropriately so as to span the range of movement of the slider.&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
OK, I have a &quot;Process&quot; button on my GUI that runs code.  How do i modify something on the GUI from within the other code?  I know exactly how I would like to set it, I just don't know how.</description>
    </item>
    <item>
      <pubDate>Fri, 15 Jul 2011 10:10:12 -0400</pubDate>
      <title>Re: Putting a progress bar on a GUI - sorry, you're out of luck</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240859#845571</link>
      <author>Sue </author>
      <description>This seems to be a good progress bar by reading all the comments here but I am new to MATLAB gui's and GUIDE and would like to ask - where abouts would I include this code to make a progress bar appear once a pushbutton has been pressed by the user.&lt;br&gt;
&lt;br&gt;
To make things clearer, I am using GUIDE and have a pushbutton which activates an underlying m-file which takes 5-7 mins to run.  Instead of the user sitting there wondering whether anything is happening, I wish to put a progress bar on the screen (again not opening up in a separate window) as an indication that yes something is happening albeit in the background.&lt;br&gt;
&lt;br&gt;
So my main question is - whereabout would I put this piece of code?  And please don't forget, try and explain it clearly and carefully - I really am like a 5 year old trying to learn to read all over again!!&lt;br&gt;
&lt;br&gt;
Many thanks, Sue</description>
    </item>
  </channel>
</rss>

