Create toolbar in figure
creates a toolbar in the
current figure and returns the tb
= uitoolbarToolbar
object. If a figure created with
the figure
function does not exist, then MATLAB® creates one to serve as the parent.
creates a toolbar with property values specified using one or more name-value pair
arguments. Specify name-value pairs with either of the previous syntaxes.tb
= uitoolbar(___,Name,Value
)
Toolbars can contain push tools or toggle tools. Push tools behave like push buttons.
When you click them, they appear to depress until you release the mouse button. Toggle
tools have two states: 'off'
or 'on'
. The state of
the button changes every time you click it.
Toolbar
objects (and their child PushTool
and
ToggleTool
objects) do not appear in figures whose WindowStyle
property is
set to 'modal'
. If a figure containing a toolbar child has its
WindowStyle
changed to 'modal'
, the toolbar child
still exists in the Children
property of the figure.
However, the toolbar does not appear while WindowStyle
is set to
'modal'
.