GetToolBarButtonState()

Syntax

State = GetToolBarButtonState(#ToolBar, Button)
Description
Get 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 get the state.

Return value

Returns nonzero if the toolbar button is toggled (pushed) and zero otherwise.

Remarks

Use SetToolBarButtonState() to change the state of a toolbar button.

See Also

SetToolBarButtonState()

Supported OS

All

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