GUI Help > Special > getToolBarButtonEnabled
getToolBarButtonEnabled
bool enabled=getToolBarButtonEnabled (handle toolbar, int item)
Description: Returns whether or not a toolbar button is enabled or disabled.
Return Value: 0 if button is disabled, 1 if the button is enabled.
Parameters:
toolbar | Handle of a toolbar gadget
item | Index of the item, starting at 0 for the left-most icon on the toolbar.
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)