SetToolBarButtonState()

Syntax

SetToolBarButtonState(#ToolBar, Button, State)
Description
Set the state of the specified toolbar button. The button has to be created using the #PB_ToolBar_Toggle mode.

Parameters

#ToolBar The toolbar to use.
Button The toolbar button to set the state.
State The new state value for the toolbar button. If the state value is nonzero, the toolbar button will be pushed, else it will be unpushed.

Return value

None.

Remarks

Use GetToolBarButtonState() to get the state of a toolbar button.

See Also

GetToolBarButtonState()

Supported OS

All

<- IsToolBar() - ToolBar Index - ToolBarHeight() ->