Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Axes properties: Toolbar in a GUI
Date: Tue, 13 May 2008 16:10:54 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 21
Message-ID: <g0ceie$h12$1@canopus.cc.umanitoba.ca>
References: <g0c76h$nom$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1210695054 17442 192.70.172.160 (13 May 2008 16:10:54 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Tue, 13 May 2008 16:10:54 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:468190



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.
-- 
   "No one has the right to destroy another person's belief by
   demanding empirical evidence."                -- Ann Landers