GUI Help > Special > setToolBarButtonEnabled
setToolBarButtonEnabled
setToolBarButtonEnabled handle toolbar, int item, bool enabled
Description: Enables or disables a toolbar item. When a toolbar item is disabled, it appears gray and the user cannot select it.
Return Value:
Parameters:
toolbar | Handle of a toolbar gadget
item | Index of the item to enable or disable, starting at 0 for the left-most item on the toolbar.
enabled | 1 to enable the item, 0 to disable the item
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)