uitoolbar
Create toolbar in figure
Description
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
)
Examples
Input Arguments
Tips
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 childPushTool
andToggleTool
objects) do not appear in figures whoseWindowStyle
property is set to'modal'
. If a figure containing a toolbar child has itsWindowStyle
changed to'modal'
, the toolbar child still exists in theChildren
property of the figure. However, the toolbar does not appear whileWindowStyle
is set to'modal'
.
Version History
Introduced before R2006a