A SERVICE OF

logo

Chapter 15: Creating a Custom iTool Widget Interface 345
iTool Developer’s Guide Adding Menus
1. If you register a new operation in one of the standard menu containers, it will
appear on the menu for your iTool, and be sensitized and desensitized
according to the same rules as the other items.
2. If you unregister an operation from one of the standard menu containers, it will
be removed from the menu for your iTool.
Operations are generally registered and unregistered in the Init method of an iTool
creation routine. See Chapter 7, “Creating an Operation” for details. For an example
that shows how to unregister standard menu items, see “Example: a Custom iTool
Interface” on page 360.
Resizing Menus
Because menubars are treated as part of the top level base widget, no special resizing
code is required to resize menus. If you are concerned that your menus always appear
in a single line, you may want to consider setting a minimum width on your top level
base sufficient to ensure that the menus never wrap to a second line.