User`s guide
Create Toolbars for Programmatic GUIs
Property Values Description
CData
3-D array of values
between 0.0 and 1.0
n-by-m-by-3 array o f RGB
values that define s a truecolor
image displayed on either a
push button or toggle button.
HandleVisibility
on, off.Defaultis
on.
Determines if an object’s
handle is visible in its
parent’s list of children. For
toolbars and their tools, set
HandleVisibility to off to
protectthemfromoperations
not intended for them.
Separator
off
, on.Defaultis
off.
Draws a dividing line to left of
the push tool or toggle tool
State
off
, on.Defaultis
off.
Toggle tool state.
on is the
down, or depressed, position.
off is the up, or raised,
position.
TooltipString
String Text of the tooltip associated
with the push tool or toggle
tool.
For a complete list of properties and for more information about the properties
listed in the table, see the Uitoolbar Properties, Uipushtool Properties, and
Uitoggletool Properties reference pages.
Toolbars
The following statements add a toolba r to a figure, and then add a push tool
and a toggle tool to the toolbar. By default, the tools are added to the toolbar,
from left to right, in the o rder they are created.
% Create the toolbar
th = uitoolbar(fh);
% Add a push tool to the toolbar
a = [.20:.05:0.95]
11-89