GUI Help > Special > setToolBarButtonState
setToolBarButtonState
setToolBarButtonState handle toolbar, int item, int state
Description: Sets whether a toolbar button appears "pushed in" or not. This is useful if you want toggle items on the toolbar, the Bold On/Off toolbar button in Microsoft Word is an example of a toggle item.
Return Value:
Parameters:
toolbar | Handle of a toolbar gadget
item | Index of the item, starting at 0 for the left-most icon on the toolbar.
state | 0 for normal appearence, 1 for pushed in appearence
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)