uipushtool
Create push tool in toolbar
Description
creates a push tool in the
toolbar of the current figure and returns the pt
= uipushtoolPushTool
object.
The current figure must be one created with the figure
function. If
the current figure does not have a child toolbar, then MATLAB® creates one in the current figure to serve as the parent. If a figure created
with the figure
function does not exist, then MATLAB creates one and calls the uitoolbar
function to create a
toolbar to serve as the parent.
Push tools behave like push buttons. When you click them, they appear to depress until you release the mouse button.
creates a push tool with property values specified using one or more name-value pair
arguments. Specify name-value pairs with either of the previous syntaxes.pt
= uipushtool(___,Name,Value
)
Examples
Input Arguments
Tips
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'
.Unlike
UIControl
push buttons, push tools do not set the figureSelectionType
property to'open'
on the second click.