Adding and removing buttons

 

You can change what buttons appear in a specific button bar.

If you simply want to enable, gray, or remove a button, then you can use the IN_SetButtonStatus or IN_BatchSetButtonStatus functions. With IN_SetButtonStatus, the button bars are automatically refreshed. With IN_BatchSetButtonStatus, you must use IN_RebuildButtonBar to update the button bars.

Note that enabling or graying a command in a button bar also enables or grays that command in a menu.

To find out the current status of a command button, use IN_GetButtonStatus.

To quickly re-enable all buttons and rebuild the button bars, use IN_RefreshMenus.

You can also change which buttons appear in which button bar by using the IN_AddButton and IN_DeleteButton functions. With these functions, you can add or remove buttons from the View Ribbon or Tool Bar.

To define the entire button bar at once, use the IN_SetButtonBarDefinition function. Note that this function has not been tested in Imagenation for UNIX.

To find out what buttons a particular button bar contains, use the IN_GetButtonBarDefinition function.

Back to: Defining buttons and button bars

See also

Changing menu contents