GUI Help > Special > getToolbarItem
getToolbarItem
int index=getToolbarItem(handle gadget)
Description: Retrieves the index of the toolbar button which the mouse is currently over. Call this when the user clicks on a toolbar button to determine which button they clicked on.
Return Value: Zero-based index of the button the mouse is currently over.
Parameters:
gadget | Handle to a toolbar gadget.
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)