Adding menus

To extend the standard main menu, you need to create a new TMenu object and add it to the main menu, where it appears as a submenu. For example, this diagram shows the standard CommonPoint menu with the Tiles submenu opened:


Each submenu is actually a group of TMomentaryMenuItem instances, each representing a menu command. Each TMomentaryMenuItem has an associated MMomentaryControlState that represents the functionality of that item. When the user clicks on that menu item, the framework calls the Select function of the associated control state. The Select function then initiates the operation represented by that menu item.


NOTE See Chapter 5, "GUI Application framework concepts," in Desktop Framework Concepts for more information on control states.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker