<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169179</link>
    <title>MATLAB Central Newsreader - Axes properties: Toolbar in a GUI</title>
    <description>Feed for thread: Axes properties: Toolbar in a GUI</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>Tue, 13 May 2008 14:05:05 -0400</pubDate>
      <title>Axes properties: Toolbar in a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169179#431801</link>
      <author>Elijah </author>
      <description>Yo&lt;br&gt;
I want to add toolbars to my gui, so when the user plots&lt;br&gt;
stuff, he can zoom in to make sure everything works out&lt;br&gt;
great. doc axes_props has nothing about toolbars, and I'm&lt;br&gt;
sorta at a loss. Is this a pipe dream or can it be done?&lt;br&gt;
&lt;br&gt;
Check out this picture for an in-depth depiction of what I'm&lt;br&gt;
looking for...&lt;br&gt;
&lt;a href="http://i43.photobucket.com/albums/e372/elijahauger/kthx.jpg"&gt;http://i43.photobucket.com/albums/e372/elijahauger/kthx.jpg&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
-eli&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 13 May 2008 16:10:54 -0400</pubDate>
      <title>Re: Axes properties: Toolbar in a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169179#431844</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;g0c76h$nom$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Elijah  &amp;lt;eli.auger@harley-davidson.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;I want to add toolbars to my gui, so when the user plots&lt;br&gt;
&amp;gt;stuff, he can zoom in to make sure everything works out&lt;br&gt;
&amp;gt;great. doc axes_props has nothing about toolbars, and I'm&lt;br&gt;
&amp;gt;sorta at a loss. Is this a pipe dream or can it be done?&lt;br&gt;
&lt;br&gt;
In Matlab, toolbars can -only- go at the top, never within an axes.&lt;br&gt;
&lt;br&gt;
You can create a toolbar using uitoolbar()&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;ht = uitoolbar('PropertyName1',value1,'PropertyName2',value2,...)&lt;br&gt;
&amp;nbsp;&amp;nbsp;creates an empty toolbar at the top of the current figure window, and&lt;br&gt;
&amp;nbsp;&amp;nbsp;returns a handle to it.&lt;br&gt;
&lt;br&gt;
And if you look at the Uitoolbar Properties help you can see that&lt;br&gt;
the Parent can only be a figure, and there is no Position property.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;"No one has the right to destroy another person's belief by&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;demanding empirical evidence."                -- Ann Landers&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 13 May 2008 16:45:24 -0400</pubDate>
      <title>Re: Axes properties: Toolbar in a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169179#431851</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
"Walter Roberson" &amp;lt;roberson@ibd.nrc-cnrc.gc.ca&amp;gt; wrote in message &lt;br&gt;
news:g0ceie$h12$1@canopus.cc.umanitoba.ca...&lt;br&gt;
&amp;gt; In article &amp;lt;g0c76h$nom$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; Elijah  &amp;lt;eli.auger@harley-davidson.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;I want to add toolbars to my gui, so when the user plots&lt;br&gt;
&amp;gt;&amp;gt;stuff, he can zoom in to make sure everything works out&lt;br&gt;
&amp;gt;&amp;gt;great. doc axes_props has nothing about toolbars, and I'm&lt;br&gt;
&amp;gt;&amp;gt;sorta at a loss. Is this a pipe dream or can it be done?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In Matlab, toolbars can -only- go at the top, never within an axes.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; You can create a toolbar using uitoolbar()&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;  ht = uitoolbar('PropertyName1',value1,'PropertyName2',value2,...)&lt;br&gt;
&amp;gt;  creates an empty toolbar at the top of the current figure window, and&lt;br&gt;
&amp;gt;  returns a handle to it.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; And if you look at the Uitoolbar Properties help you can see that&lt;br&gt;
&amp;gt; the Parent can only be a figure, and there is no Position property.&lt;br&gt;
&lt;br&gt;
If the OP wants the default figure toolbar in their GUI, changing the &lt;br&gt;
figure's Toolbar property to 'figure' is probably sufficient.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#Toolbar"&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#Toolbar&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 14 May 2008 17:54:02 -0400</pubDate>
      <title>Re: Axes properties: Toolbar in a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169179#432034</link>
      <author>Elijah </author>
      <description>Thanks for the responses, guys. I figured out what I wanted...&lt;br&gt;
&lt;br&gt;
in the OpeningFcn, I added this line before updating guidata:&lt;br&gt;
&lt;br&gt;
set(hObject,'toolbar','figure');&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
It's rad.&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
