Changing menu contents

 

You can change which commands appear in a specific menu.

To enable, gray, remove, or check a command in a menu--but not change which menu it appears in--you can use the SetMenuStatus or BatchSetMenuStatus transactions. With SetMenuStatus, the menus are automatically refreshed. With BatchSetMenuStatus, you must use RefreshMenus to update the menus.

Note that enabling or graying a command in a menu also enables or grays the command in a button bar (if it has an associated button bitmap).

To find out the current status of a command, use GetMenuStatus. To reset all menus back to their default values, use ResetMenus.

To change which menu or submenu a command appears in, use the AddMenuItem and DeleteMenuItem transactions. With these transactions, you can add or remove commands from the main Imagenation window, Layers window, Detail window, or Symbols palette menus.

To find out what commands a particular menu contains, use the GetMenuDefinition transaction.

See also