<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MATLAB Basics: Change the string on a button when pushed</title>
	<atom:link href="http://blogs.mathworks.com/videos/2008/02/05/matlab-basics-change-the-string-on-a-button-when-pushed/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/videos/2008/02/05/matlab-basics-change-the-string-on-a-button-when-pushed/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<lastBuildDate>Fri, 10 Feb 2012 20:31:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Keith</title>
		<link>http://blogs.mathworks.com/videos/2008/02/05/matlab-basics-change-the-string-on-a-button-when-pushed/#comment-2692</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Thu, 30 Jun 2011 16:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/02/05/matlab-basics-change-the-string-on-a-button-when-pushed/#comment-2692</guid>
		<description>Sorry, just discovered &lt;pre&gt;drawnow&lt;/pre&gt;.  All works now.</description>
		<content:encoded><![CDATA[<p>Sorry, just discovered
<pre>drawnow</pre>
</p><p>.  All works now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith</title>
		<link>http://blogs.mathworks.com/videos/2008/02/05/matlab-basics-change-the-string-on-a-button-when-pushed/#comment-2691</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Thu, 30 Jun 2011 14:58:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/02/05/matlab-basics-change-the-string-on-a-button-when-pushed/#comment-2691</guid>
		<description>Hi Doug,

I&#039;ve been looking through your excellent GUIDE tutorials and trying to find the answer to what I feel like is probably a really dumb question.  I have a function in my gui that does all the real work/number crunching of my program.  What I would like to do is to have an indicator that tells the user that the program is actually executing and alerts him when the new results have been computed.  Right now I&#039;m trying to do this with just a non-editable text box.  When my RunSimulation() function starts, the first thing I do is:

&lt;pre&gt;
set(handles.StatusBar, &#039;String&#039;, &#039;Calculating...&#039;);
guidata(handles.StatusBar, handles);
&lt;/pre&gt;

and the last thing I do in the function (after all the computation is complete) is:

&lt;pre&gt;
set(handles.StatusBar, &#039;String&#039;, &#039;Ready.&#039;);
guidata(handles.StatusBar, handles);
&lt;/pre&gt;

What happens though is that the StatusBar only ever says &quot;Ready.&quot;  In the matlab window, though, it prints out stuff that confirms that something is actually going on inside the program.

I guess my question is: when do the contents of the various UI elements actually get updated and/or how can I force particular elements to change immediately when I set new contents?

Thanks,
Keith</description>
		<content:encoded><![CDATA[<p>Hi Doug,</p>
<p>I&#8217;ve been looking through your excellent GUIDE tutorials and trying to find the answer to what I feel like is probably a really dumb question.  I have a function in my gui that does all the real work/number crunching of my program.  What I would like to do is to have an indicator that tells the user that the program is actually executing and alerts him when the new results have been computed.  Right now I&#8217;m trying to do this with just a non-editable text box.  When my RunSimulation() function starts, the first thing I do is:</p>
<pre>
set(handles.StatusBar, 'String', 'Calculating...');
guidata(handles.StatusBar, handles);
</pre>
<p>and the last thing I do in the function (after all the computation is complete) is:</p>
<pre>
set(handles.StatusBar, 'String', 'Ready.');
guidata(handles.StatusBar, handles);
</pre>
<p>What happens though is that the StatusBar only ever says &#8220;Ready.&#8221;  In the matlab window, though, it prints out stuff that confirms that something is actually going on inside the program.</p>
<p>I guess my question is: when do the contents of the various UI elements actually get updated and/or how can I force particular elements to change immediately when I set new contents?</p>
<p>Thanks,<br />
Keith</p>
]]></content:encoded>
	</item>
</channel>
</rss>

