<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168869</link>
    <title>MATLAB Central Newsreader - Wish List Item - Different Extension for GUIDE figure templates</title>
    <description>Feed for thread: Wish List Item - Different Extension for GUIDE figure templates</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 19 May 2008 19:54:01 -0400</pubDate>
      <title>Re: Wish List Item - Different Extension for GUIDE figure templates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168869#433007</link>
      <author>Gary</author>
      <description>Thanks for all the advice about building my GUIs from&lt;br&gt;
scratch.  That was the way I started out, but really liked&lt;br&gt;
the WYSIWYG aspect of GUIDE - no need to guess the proper&lt;br&gt;
position values to get things in the right place.  &lt;br&gt;
&lt;br&gt;
I like Matt's approach below:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
"Matt Fig" &amp;lt;spamanon@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g0sg3p$jkv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; About the only thing I use guide for is to lay out my GUIs&lt;br&gt;
&amp;gt; quickly.  If I want to build a complicated GUI with lots of&lt;br&gt;
&amp;gt; uicontrols, I will first create it in guide.  Then I copy&lt;br&gt;
&amp;gt; and paste the 'position' properties into the file I will&lt;br&gt;
&amp;gt; actually use to create my GUI.  This way the physical layout&lt;br&gt;
&amp;gt; is quick and I still write my own file to get the control&lt;br&gt;
&amp;gt; over the GUI and avoid the problems of having a .m and .fig&lt;br&gt;
&amp;gt; file separately.&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 19 May 2008 18:39:03 -0400</pubDate>
      <title>Re: Wish List Item - Different Extension for GUIDE figure templates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168869#432992</link>
      <author>per isakson</author>
      <description>"Gary " &amp;lt;grubin698@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g0s0ie$d7f$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;lt;snip&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; First, a question - is using the figure handle for&lt;br&gt;
&amp;gt; &amp;gt; getappdata/setappdata considered bad form?  Even if I &lt;br&gt;
used&lt;br&gt;
&amp;gt; &amp;gt; something else, I think that I would still have the &lt;br&gt;
problem&lt;br&gt;
&amp;gt; &amp;gt; of  the plot data saved in the plot ui objects.&lt;br&gt;
&amp;gt; &amp;lt;/snip&amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Nobody has any thoughts/opinions/advice on this?&lt;br&gt;
&amp;gt; Gary&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Would it be possible to make the fig-file "read only"?&lt;br&gt;
&lt;br&gt;
/per&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 19 May 2008 18:15:21 -0400</pubDate>
      <title>Re: Wish List Item - Different Extension for GUIDE figure templates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168869#432985</link>
      <author>Matt Fig</author>
      <description>About the only thing I use guide for is to lay out my GUIs&lt;br&gt;
quickly.  If I want to build a complicated GUI with lots of&lt;br&gt;
uicontrols, I will first create it in guide.  Then I copy&lt;br&gt;
and paste the 'position' properties into the file I will&lt;br&gt;
actually use to create my GUI.  This way the physical layout&lt;br&gt;
is quick and I still write my own file to get the control&lt;br&gt;
over the GUI and avoid the problems of having a .m and .fig&lt;br&gt;
file separately.&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 19 May 2008 18:06:01 -0400</pubDate>
      <title>Re: Wish List Item - Different Extension for GUIDE figure templates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168869#432979</link>
      <author>Kenneth Eaton</author>
      <description>&amp;gt; Don't use GUIDE.  Manually create your GUIs using handle &lt;br&gt;
&amp;gt; graphics and nested functions.  Check out the following &lt;br&gt;
&amp;gt; link:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;a href="http://blogs.mathworks.com/pick/2007/12/28/matlab-basics-"&gt;http://blogs.mathworks.com/pick/2007/12/28/matlab-basics-&lt;/a&gt;&lt;br&gt;
&amp;gt; guis-without-guide/&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Using GUIDE is a major pain in the neck and the cause of &lt;br&gt;
&amp;gt; many GUI-related problems.  Using handle graphics and &lt;br&gt;
&amp;gt; nested functions can be confusing at first, but you will &lt;br&gt;
be &lt;br&gt;
&amp;gt; thankful you used this method rather than GUIDE.  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If you run into problems and can't figure out how to do &lt;br&gt;
&amp;gt; something, post here and there are plenty of people who &lt;br&gt;
can &lt;br&gt;
&amp;gt; help.&lt;br&gt;
&lt;br&gt;
I have to agree. I've messed around with GUIDE a little bit &lt;br&gt;
and it seems much cleaner to write your own GUIs with &lt;br&gt;
nested functions. I think there are a few whitepaper &lt;br&gt;
postings and tutorials online to show you how to construct &lt;br&gt;
your own GUIs in this way.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 19 May 2008 17:56:02 -0400</pubDate>
      <title>Re: Wish List Item - Different Extension for GUIDE figure templates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168869#432969</link>
      <author>helper </author>
      <description>"Gary " &amp;lt;grubin698@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g0s0ie$d7f$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;lt;snip&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; First, a question - is using the figure handle for&lt;br&gt;
&amp;gt; &amp;gt; getappdata/setappdata considered bad form?  Even if I &lt;br&gt;
used&lt;br&gt;
&amp;gt; &amp;gt; something else, I think that I would still have the &lt;br&gt;
problem&lt;br&gt;
&amp;gt; &amp;gt; of  the plot data saved in the plot ui objects.&lt;br&gt;
&amp;gt; &amp;lt;/snip&amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Nobody has any thoughts/opinions/advice on this?&lt;br&gt;
&amp;gt; Gary&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Don't use GUIDE.  Manually create your GUIs using handle &lt;br&gt;
graphics and nested functions.  Check out the following &lt;br&gt;
link:&lt;br&gt;
&lt;br&gt;
&lt;a href="http://blogs.mathworks.com/pick/2007/12/28/matlab-basics-"&gt;http://blogs.mathworks.com/pick/2007/12/28/matlab-basics-&lt;/a&gt;&lt;br&gt;
guis-without-guide/&lt;br&gt;
&lt;br&gt;
Using GUIDE is a major pain in the neck and the cause of &lt;br&gt;
many GUI-related problems.  Using handle graphics and &lt;br&gt;
nested functions can be confusing at first, but you will be &lt;br&gt;
thankful you used this method rather than GUIDE.  &lt;br&gt;
&lt;br&gt;
If you run into problems and can't figure out how to do &lt;br&gt;
something, post here and there are plenty of people who can &lt;br&gt;
help.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 19 May 2008 14:59:02 -0400</pubDate>
      <title>Re: Wish List Item - Different Extension for GUIDE figure templates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168869#432923</link>
      <author>Salmon </author>
      <description>I had the same problem once.  My case was even worse.  I&lt;br&gt;
have a 3d dataset with the GUI. After hitting CTRL-S, my PC&lt;br&gt;
virtually stalled.  I didn't know what it was doing until a&lt;br&gt;
few mins later, there was a HUGE Fig file shown up in the&lt;br&gt;
directory.  I didn't know what that figure file was, so out&lt;br&gt;
of curiosity I tried to use "file-&amp;gt;open", and of course, you&lt;br&gt;
know, it crashed my PC.&lt;br&gt;
&lt;br&gt;
"Gary " &amp;lt;grubin698@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fvshd0$81q$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I use GUIDE to create GUI layouts, then share data between&lt;br&gt;
&amp;gt; functions using getappdata/setappdata using the figure handle&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 19 May 2008 13:50:06 -0400</pubDate>
      <title>Re: Wish List Item - Different Extension for GUIDE figure templates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168869#432904</link>
      <author>Gary</author>
      <description>&amp;lt;snip&amp;gt;&lt;br&gt;
&amp;gt; First, a question - is using the figure handle for&lt;br&gt;
&amp;gt; getappdata/setappdata considered bad form?  Even if I used&lt;br&gt;
&amp;gt; something else, I think that I would still have the problem&lt;br&gt;
&amp;gt; of  the plot data saved in the plot ui objects.&lt;br&gt;
&amp;lt;/snip&amp;gt;&lt;br&gt;
&lt;br&gt;
Nobody has any thoughts/opinions/advice on this?&lt;br&gt;
Gary&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 07 May 2008 15:21:04 -0400</pubDate>
      <title>Wish List Item - Different Extension for GUIDE figure templates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168869#430834</link>
      <author>Gary</author>
      <description>I use GUIDE to create GUI layouts, then share data between&lt;br&gt;
functions using getappdata/setappdata using the figure handle&lt;br&gt;
&lt;br&gt;
If I accidentally hit CTRL-S while the GUI is the active&lt;br&gt;
window, I end up saving the contents of the plots, controls,&lt;br&gt;
and appdata in the fig file that is associated with the GUI.&lt;br&gt;
&amp;nbsp;Every time I run the code after that, the figure flashes&lt;br&gt;
with the saved data in the plots before being cleared.&lt;br&gt;
Removing all that saved data is a pain in the neck.&lt;br&gt;
&lt;br&gt;
First, a question - is using the figure handle for&lt;br&gt;
getappdata/setappdata considered bad form?  Even if I used&lt;br&gt;
something else, I think that I would still have the problem&lt;br&gt;
of  the plot data saved in the plot ui objects.&lt;br&gt;
&lt;br&gt;
Now for the suggestion:  It seems to me that what you're&lt;br&gt;
creating in GUIDE isn't a figure in the same sense as what&lt;br&gt;
you get when you perform a "Save" operation on a figure. &lt;br&gt;
Instead, it is a template for such a figure.  Why not call&lt;br&gt;
the files created by GUIDE '.fgt' for figure template.  It&lt;br&gt;
seems to better fit the purpose of GUIDE and would have the&lt;br&gt;
added benefit of making it much harder for me to&lt;br&gt;
accidentally save over the GUIDE-generated file.&lt;br&gt;
&lt;br&gt;
Am I the only one who's done this?&lt;br&gt;
&lt;br&gt;
Gary&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
