ITT Rule IDL Version 7.0 Uživatelský manuál Strana 345

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 430
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 344
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.
Zobrazit stránku 344
1 2 ... 340 341 342 343 344 345 346 347 348 349 350 ... 429 430

Komentáře k této Příručce

Žádné komentáře