Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Axes properties: Toolbar in a GUI
Date: Tue, 13 May 2008 12:45:24 -0400
Organization: The MathWorks, Inc.
Lines: 32
Message-ID: <g0cgj4$1cr$1@fred.mathworks.com>
References: <g0c76h$nom$1@fred.mathworks.com> <g0ceie$h12$1@canopus.cc.umanitoba.ca>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1210697124 1435 144.212.105.187 (13 May 2008 16:45:24 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 13 May 2008 16:45:24 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:468197




"Walter Roberson" <roberson@ibd.nrc-cnrc.gc.ca> wrote in message 
news:g0ceie$h12$1@canopus.cc.umanitoba.ca...
> In article <g0c76h$nom$1@fred.mathworks.com>,
> Elijah  <eli.auger@harley-davidson.com> wrote:
>
>>I want to add toolbars to my gui, so when the user plots
>>stuff, he can zoom in to make sure everything works out
>>great. doc axes_props has nothing about toolbars, and I'm
>>sorta at a loss. Is this a pipe dream or can it be done?
>
> In Matlab, toolbars can -only- go at the top, never within an axes.
>
> You can create a toolbar using uitoolbar()
>
>  ht = uitoolbar('PropertyName1',value1,'PropertyName2',value2,...)
>  creates an empty toolbar at the top of the current figure window, and
>  returns a handle to it.
>
> And if you look at the Uitoolbar Properties help you can see that
> the Parent can only be a figure, and there is no Position property.

If the OP wants the default figure toolbar in their GUI, changing the 
figure's Toolbar property to 'figure' is probably sufficient.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#Toolbar

-- 
Steve Lord
slord@mathworks.com