ITT Rule IDL Version 7.0 User Manual Page 399

  • Download
  • Add to my manuals
  • Print
  • Page
    / 430
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 398
Appendix B: iTool Compound Widgets 399
iTool Developer’s Guide CW_ITMENU
CW_ITMENU
The CW_ITMENU function creates a top-level pulldown menu compound widget.
The menu items in the pulldown menu correspond to the operations contained in a
specified container object within the OPERATIONS container of the associated
iTool. (See “iTool Object Hierarchy” on page 31 for a description of the iTool object
hierarchy.)
Warning
This routine can only be used in the context of a user-created iTool. See “Overview
of iTools Compound Widgets” on page 398 for details.
The CW_ITMENU widget automatically performs the following actions:
1. For each child in the folder, creates either a submenu (if the child is a container
object) or a menu item (if the child is a registered operation). In both cases the
child’s NAME property is used for the menu item value.
If the child is a container, CW_ITMENU recursively creates submenus
and menu items for that child’s children.
If the child is an operation, CW_ITMENU creates a menu item. The
child’s ACCELERATOR property is used for the keyboard accelerator
(unless the CONTEXT_MENU keyword is set). The DISABLE property
is used to determine initial sensitivity. If the CHECKED property is set, a
checked menu item is created. If SEPARATOR is set, a menu separator is
inserted before the menu item. See IDLitTool::RegisterOperation for
details on using these properties.
2. Registers the newly-created menu with the specified user interface object.
3. Adds itself as an observer of the specified container. If any changes occur to
items within the container, then the menu will be notified and will
Page view 398
1 2 ... 394 395 396 397 398 399 400 401 402 403 404 ... 429 430

Comments to this Manuals

No comments