<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240179</link>
    <title>MATLAB Central Newsreader - Matlab GUI newbye</title>
    <description>Feed for thread: Matlab GUI newbye</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>Sun, 30 Nov 2008 23:48:01 -0500</pubDate>
      <title>Matlab GUI newbye</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240179#614046</link>
      <author>Frank </author>
      <description>Hi again!&lt;br&gt;
&lt;br&gt;
So many questions for you experts these days. I'd like to know if there is a simple and fast way to create a GUI interface with data input boxes for parameters, other simple controls, like labels or textboxes to give output information (like the time elapsed) and buttons that start the calculation of a PDE solution (I wrote the code for that) with a figure window in which to display the &quot;video&quot; or frames of the time varying solution?&lt;br&gt;
&lt;br&gt;
Thank you</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 00:17:31 -0500</pubDate>
      <title>Re: Matlab GUI newbye</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240179#614049</link>
      <author>ImageAnalyst</author>
      <description>On Nov 30, 6:48=A0pm, &quot;Frank&quot; &amp;lt;francesco.mann...@fastwebnet.it&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi again!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; So many questions for you experts these days. I'd like to know if there i=&lt;br&gt;
s a simple and fast way to create a GUI interface with data input boxes for=&lt;br&gt;
&amp;nbsp;parameters, other simple controls, like labels or textboxes to give output=&lt;br&gt;
&amp;nbsp;information (like the time elapsed) and buttons that start the calculation=&lt;br&gt;
&amp;nbsp;of a PDE solution (I wrote the code for that) with a figure window in whic=&lt;br&gt;
h to display the &quot;video&quot; or frames of the time varying solution?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thank you&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------------=&lt;br&gt;
-----------&lt;br&gt;
Frank:&lt;br&gt;
Yes.  I suggegst you use GUIDE.  It's included in MATLAB and allows&lt;br&gt;
you to put various kinds of controls on the GUI (static text, edit&lt;br&gt;
fields, button, pictures/plots, scroll bars, radio button, check&lt;br&gt;
boxes, grids/tables, etc.) and you can set various properties for them&lt;br&gt;
(size, color, location, font, caption, etc.).&lt;br&gt;
Regards,&lt;br&gt;
ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 13:11:02 -0500</pubDate>
      <title>Re: Matlab GUI newbye</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240179#614145</link>
      <author>Frank </author>
      <description>ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;c2fd2c68-5120-49ca-8cd0-06ca543eb7be@20g2000yqt.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Nov 30, 6:48=A0pm, &quot;Frank&quot; &amp;lt;francesco.mann...@fastwebnet.it&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Hi again!&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; So many questions for you experts these days. I'd like to know if there i=&lt;br&gt;
&amp;gt; s a simple and fast way to create a GUI interface with data input boxes for=&lt;br&gt;
&amp;gt;  parameters, other simple controls, like labels or textboxes to give output=&lt;br&gt;
&amp;gt;  information (like the time elapsed) and buttons that start the calculation=&lt;br&gt;
&amp;gt;  of a PDE solution (I wrote the code for that) with a figure window in whic=&lt;br&gt;
&amp;gt; h to display the &quot;video&quot; or frames of the time varying solution?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thank you&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ---------------------------------------------------------------------------=&lt;br&gt;
&amp;gt; -----------&lt;br&gt;
&amp;gt; Frank:&lt;br&gt;
&amp;gt; Yes.  I suggegst you use GUIDE.  It's included in MATLAB and allows&lt;br&gt;
&amp;gt; you to put various kinds of controls on the GUI (static text, edit&lt;br&gt;
&amp;gt; fields, button, pictures/plots, scroll bars, radio button, check&lt;br&gt;
&amp;gt; boxes, grids/tables, etc.) and you can set various properties for them&lt;br&gt;
&amp;gt; (size, color, location, font, caption, etc.).&lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; ImageAnalyst&lt;br&gt;
&lt;br&gt;
Thank you very much! Now I'm trying to understand how it works, seems like a visual programming language... It's really what I was looking for. I have a question for you. If I use a template I have some code already written and ready to use, but if I choose a blank Gui project, is there a way to get function names and parameters automatically? (In visual B or C you just clicked on the button for example and the code window opened with the functions declared)&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
Frank</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 13:55:06 -0500</pubDate>
      <title>Re: Matlab GUI newbye</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240179#614156</link>
      <author>Husam Aldahiyat</author>
      <description>GUIDE on default creates an m-file for your GUI with callback functions for each of the uicontrols that you put (edit, text, slider, etc.). So after you make the GUI and save it, scroll down to one of the functions and put your code there (you can check control's callback but doiuble clicking on it).</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 15:17:51 -0500</pubDate>
      <title>Re: Matlab GUI newbye</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240179#614188</link>
      <author>ImageAnalyst</author>
      <description>On Dec 1, 8:55=A0am, &quot;Husam Aldahiyat&quot; &amp;lt;numand...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; GUIDE on default creates an m-file for your GUI with callback functions f=&lt;br&gt;
or each of the uicontrols that you put (edit, text, slider, etc.). So after=&lt;br&gt;
&amp;nbsp;you make the GUI and save it, scroll down to one of the functions and put =&lt;br&gt;
your code there (you can check control's callback but doiuble clicking on i=&lt;br&gt;
t).&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------------=&lt;br&gt;
--------------&lt;br&gt;
Well, not exactly.  These functions are only created in your source&lt;br&gt;
code AFTER you right click on the control then select &quot;View Callbacks&quot;&lt;br&gt;
and pick the callback function that you want.  Only AFTER this, does&lt;br&gt;
the callback function actually show up in the source code.  (Try it&lt;br&gt;
and you'll see.)&lt;br&gt;
&lt;br&gt;
Your best option may be to create the callbacks by right clicking as&lt;br&gt;
described above, then paste your template code (from some other m-&lt;br&gt;
file) into the appropriate function.  I just go with the automatically-&lt;br&gt;
created callback function names, but you can change these if you want&lt;br&gt;
by modifying the string in the callback property of the control.  This&lt;br&gt;
will give it the name you want instead of the automatically-generated&lt;br&gt;
name.  So this could be an option for you if you really like the&lt;br&gt;
function names in your template instead.  Just make sure that the&lt;br&gt;
three input arguments match the automatically-generated input&lt;br&gt;
arguments.&lt;br&gt;
&lt;br&gt;
I know it's not as nice as Visual Studio and I hear they are working&lt;br&gt;
on a massive upgrade for the lame GUIDE.  For example, when you double&lt;br&gt;
click the control, it brings up the properties window instead of the&lt;br&gt;
callback source code (Visual Studio brings up the callback source&lt;br&gt;
code).  Plus there's no way to dock the properties window.  Why they&lt;br&gt;
chose not to allow docking of that window when they do allow docking&lt;br&gt;
of most other windows, I don't know.  I'd prefer a docked properties&lt;br&gt;
window and to go to the control's callback source code when you double&lt;br&gt;
click on the control (i.e. just like it is in Visual Studio).  And&lt;br&gt;
control-a selects all controls on the figure EXCEPT those controls&lt;br&gt;
within group boxes.  And there's the whole issue with units -&lt;br&gt;
normalized, pixels, etc.  How if you're in normalized and then want to&lt;br&gt;
adjust something - well, it's a major pain to get things aligned.  I&lt;br&gt;
could go on but they know it's crappy and hopefully the next version&lt;br&gt;
will be a lot better.  But for now, it's all we have and it's still&lt;br&gt;
better than creating all the figures and controls on it manually in&lt;br&gt;
your code.&lt;br&gt;
Regards,&lt;br&gt;
ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 15:26:27 -0500</pubDate>
      <title>Re: Matlab GUI newbye</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240179#614190</link>
      <author>ImageAnalyst</author>
      <description>On Dec 1, 10:17=A0am, ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Dec 1, 8:55=A0am, &quot;Husam Aldahiyat&quot; &amp;lt;numand...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; GUIDE on default creates an m-file for your GUI with callback functions=&lt;br&gt;
&amp;nbsp;for each of the uicontrols that you put (edit, text, slider, etc.). So aft=&lt;br&gt;
er you make the GUI and save it, scroll down to one of the functions and pu=&lt;br&gt;
t your code there (you can check control's callback but doiuble clicking on=&lt;br&gt;
&amp;nbsp;it).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -------------------------------------------------------------------------=&lt;br&gt;
--=AD--------------&lt;br&gt;
&amp;gt; Well, not exactly. =A0These functions are only created in your source&lt;br&gt;
&amp;gt; code AFTER you right click on the control then select &quot;View Callbacks&quot;&lt;br&gt;
&amp;gt; and pick the callback function that you want. =A0Only AFTER this, does&lt;br&gt;
&amp;gt; the callback function actually show up in the source code. =A0(Try it&lt;br&gt;
&amp;gt; and you'll see.)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Your best option may be to create the callbacks by right clicking as&lt;br&gt;
&amp;gt; described above, then paste your template code (from some other m-&lt;br&gt;
&amp;gt; file) into the appropriate function. =A0I just go with the automatically-&lt;br&gt;
&amp;gt; created callback function names, but you can change these if you want&lt;br&gt;
&amp;gt; by modifying the string in the callback property of the control. =A0This&lt;br&gt;
&amp;gt; will give it the name you want instead of the automatically-generated&lt;br&gt;
&amp;gt; name. =A0So this could be an option for you if you really like the&lt;br&gt;
&amp;gt; function names in your template instead. =A0Just make sure that the&lt;br&gt;
&amp;gt; three input arguments match the automatically-generated input&lt;br&gt;
&amp;gt; arguments.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I know it's not as nice as Visual Studio and I hear they are working&lt;br&gt;
&amp;gt; on a massive upgrade for the lame GUIDE. =A0For example, when you double&lt;br&gt;
&amp;gt; click the control, it brings up the properties window instead of the&lt;br&gt;
&amp;gt; callback source code (Visual Studio brings up the callback source&lt;br&gt;
&amp;gt; code). =A0Plus there's no way to dock the properties window. =A0Why they&lt;br&gt;
&amp;gt; chose not to allow docking of that window when they do allow docking&lt;br&gt;
&amp;gt; of most other windows, I don't know. =A0I'd prefer a docked properties&lt;br&gt;
&amp;gt; window and to go to the control's callback source code when you double&lt;br&gt;
&amp;gt; click on the control (i.e. just like it is in Visual Studio). =A0And&lt;br&gt;
&amp;gt; control-a selects all controls on the figure EXCEPT those controls&lt;br&gt;
&amp;gt; within group boxes. =A0And there's the whole issue with units -&lt;br&gt;
&amp;gt; normalized, pixels, etc. =A0How if you're in normalized and then want to&lt;br&gt;
&amp;gt; adjust something - well, it's a major pain to get things aligned. =A0I&lt;br&gt;
&amp;gt; could go on but they know it's crappy and hopefully the next version&lt;br&gt;
&amp;gt; will be a lot better. =A0But for now, it's all we have and it's still&lt;br&gt;
&amp;gt; better than creating all the figures and controls on it manually in&lt;br&gt;
&amp;gt; your code.&lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; ImageAnalyst&lt;br&gt;
&lt;br&gt;
-------------------------------------------------------&lt;br&gt;
Frank:&lt;br&gt;
Oh yeah, one other thing I forgot to tell you.  When you view the&lt;br&gt;
callback, it creates two functions: the callback and an &quot;CreateFcn&quot;&lt;br&gt;
function.  You put your code into the callback.  But even though the&lt;br&gt;
CreateFcn() function for that control doesn't have any code in it,&lt;br&gt;
don't think that it's safe to delete it.  You might think so because&lt;br&gt;
there may be other controls on the figure that you haven't viewed the&lt;br&gt;
callback for (checkboxes, etc.) and they don't have Create functions&lt;br&gt;
for them but yet they do, in fact, get created.  So you might think&lt;br&gt;
that they are optional, especially since there's no code inside it,&lt;br&gt;
only comments.  However if you delete the CreateFcn() and run your&lt;br&gt;
code, all hell breaks loose.  MATLAB crashes with a big dump.  So&lt;br&gt;
don't delete any CreateFcn() functions once they are created.  It may&lt;br&gt;
even totally corrupt your file and the only option is to get an old&lt;br&gt;
copy from a backup that you've hopefully made (I know from experience&lt;br&gt;
- several times!).  I just now (this morning) verfied this crash&lt;br&gt;
again, in R2008b, so it's still not fixed.  You've been warned.&lt;br&gt;
Good luck,&lt;br&gt;
ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 23:11:01 -0500</pubDate>
      <title>Re: Matlab GUI newbye</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240179#614316</link>
      <author>Frank </author>
      <description>ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;3bec2bf3-471a-4709-a44c-b9be2364ac0d@k19g2000yqg.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Dec 1, 10:17=A0am, ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; On Dec 1, 8:55=A0am, &quot;Husam Aldahiyat&quot; &amp;lt;numand...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; GUIDE on default creates an m-file for your GUI with callback functions=&lt;br&gt;
&amp;gt;  for each of the uicontrols that you put (edit, text, slider, etc.). So aft=&lt;br&gt;
&amp;gt; er you make the GUI and save it, scroll down to one of the functions and pu=&lt;br&gt;
&amp;gt; t your code there (you can check control's callback but doiuble clicking on=&lt;br&gt;
&amp;gt;  it).&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; -------------------------------------------------------------------------=&lt;br&gt;
&amp;gt; --=AD--------------&lt;br&gt;
&amp;gt; &amp;gt; Well, not exactly. =A0These functions are only created in your source&lt;br&gt;
&amp;gt; &amp;gt; code AFTER you right click on the control then select &quot;View Callbacks&quot;&lt;br&gt;
&amp;gt; &amp;gt; and pick the callback function that you want. =A0Only AFTER this, does&lt;br&gt;
&amp;gt; &amp;gt; the callback function actually show up in the source code. =A0(Try it&lt;br&gt;
&amp;gt; &amp;gt; and you'll see.)&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Your best option may be to create the callbacks by right clicking as&lt;br&gt;
&amp;gt; &amp;gt; described above, then paste your template code (from some other m-&lt;br&gt;
&amp;gt; &amp;gt; file) into the appropriate function. =A0I just go with the automatically-&lt;br&gt;
&amp;gt; &amp;gt; created callback function names, but you can change these if you want&lt;br&gt;
&amp;gt; &amp;gt; by modifying the string in the callback property of the control. =A0This&lt;br&gt;
&amp;gt; &amp;gt; will give it the name you want instead of the automatically-generated&lt;br&gt;
&amp;gt; &amp;gt; name. =A0So this could be an option for you if you really like the&lt;br&gt;
&amp;gt; &amp;gt; function names in your template instead. =A0Just make sure that the&lt;br&gt;
&amp;gt; &amp;gt; three input arguments match the automatically-generated input&lt;br&gt;
&amp;gt; &amp;gt; arguments.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I know it's not as nice as Visual Studio and I hear they are working&lt;br&gt;
&amp;gt; &amp;gt; on a massive upgrade for the lame GUIDE. =A0For example, when you double&lt;br&gt;
&amp;gt; &amp;gt; click the control, it brings up the properties window instead of the&lt;br&gt;
&amp;gt; &amp;gt; callback source code (Visual Studio brings up the callback source&lt;br&gt;
&amp;gt; &amp;gt; code). =A0Plus there's no way to dock the properties window. =A0Why they&lt;br&gt;
&amp;gt; &amp;gt; chose not to allow docking of that window when they do allow docking&lt;br&gt;
&amp;gt; &amp;gt; of most other windows, I don't know. =A0I'd prefer a docked properties&lt;br&gt;
&amp;gt; &amp;gt; window and to go to the control's callback source code when you double&lt;br&gt;
&amp;gt; &amp;gt; click on the control (i.e. just like it is in Visual Studio). =A0And&lt;br&gt;
&amp;gt; &amp;gt; control-a selects all controls on the figure EXCEPT those controls&lt;br&gt;
&amp;gt; &amp;gt; within group boxes. =A0And there's the whole issue with units -&lt;br&gt;
&amp;gt; &amp;gt; normalized, pixels, etc. =A0How if you're in normalized and then want to&lt;br&gt;
&amp;gt; &amp;gt; adjust something - well, it's a major pain to get things aligned. =A0I&lt;br&gt;
&amp;gt; &amp;gt; could go on but they know it's crappy and hopefully the next version&lt;br&gt;
&amp;gt; &amp;gt; will be a lot better. =A0But for now, it's all we have and it's still&lt;br&gt;
&amp;gt; &amp;gt; better than creating all the figures and controls on it manually in&lt;br&gt;
&amp;gt; &amp;gt; your code.&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; -------------------------------------------------------&lt;br&gt;
&amp;gt; Frank:&lt;br&gt;
&amp;gt; Oh yeah, one other thing I forgot to tell you.  When you view the&lt;br&gt;
&amp;gt; callback, it creates two functions: the callback and an &quot;CreateFcn&quot;&lt;br&gt;
&amp;gt; function.  You put your code into the callback.  But even though the&lt;br&gt;
&amp;gt; CreateFcn() function for that control doesn't have any code in it,&lt;br&gt;
&amp;gt; don't think that it's safe to delete it.  You might think so because&lt;br&gt;
&amp;gt; there may be other controls on the figure that you haven't viewed the&lt;br&gt;
&amp;gt; callback for (checkboxes, etc.) and they don't have Create functions&lt;br&gt;
&amp;gt; for them but yet they do, in fact, get created.  So you might think&lt;br&gt;
&amp;gt; that they are optional, especially since there's no code inside it,&lt;br&gt;
&amp;gt; only comments.  However if you delete the CreateFcn() and run your&lt;br&gt;
&amp;gt; code, all hell breaks loose.  MATLAB crashes with a big dump.  So&lt;br&gt;
&amp;gt; don't delete any CreateFcn() functions once they are created.  It may&lt;br&gt;
&amp;gt; even totally corrupt your file and the only option is to get an old&lt;br&gt;
&amp;gt; copy from a backup that you've hopefully made (I know from experience&lt;br&gt;
&amp;gt; - several times!).  I just now (this morning) verfied this crash&lt;br&gt;
&amp;gt; again, in R2008b, so it's still not fixed.  You've been warned.&lt;br&gt;
&amp;gt; Good luck,&lt;br&gt;
&amp;gt; ImageAnalyst&lt;br&gt;
&lt;br&gt;
I thank you very much! Your answer was very satisfying. I will ask you in future if I need some hint about GUI. Now I start my struggle with GUIDE!&lt;br&gt;
&lt;br&gt;
Frank</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 23:24:02 -0500</pubDate>
      <title>Re: Matlab GUI newbye</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240179#614321</link>
      <author>Jiro Doke</author>
      <description>&quot;Frank&quot; &amp;lt;francesco.manni01@fastwebnet.it&amp;gt; wrote in message &amp;gt; &lt;br&gt;
&amp;gt; I thank you very much! Your answer was very satisfying. I will ask you in future if I need some hint about GUI. Now I start my struggle with GUIDE!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Frank&lt;br&gt;
&lt;br&gt;
Frank,&lt;br&gt;
&lt;br&gt;
These videos by Doug may be of interest to you:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://blogs.mathworks.com/videos/category/gui-or-guide/&quot;&gt;http://blogs.mathworks.com/videos/category/gui-or-guide/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
You can start off with the first one (last on the page):&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://blogs.mathworks.com/videos/2005/05/05/gui-building-tutorial/&quot;&gt;http://blogs.mathworks.com/videos/2005/05/05/gui-building-tutorial/&lt;/a&gt;&lt;br&gt;
(GUI Building Tutorial)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
jiro</description>
    </item>
  </channel>
</rss>

