Progress
Programming
Handbook


Menu Hierarchy

Progress allows you to generate static and dynamic menus according to the requirements of your application. If you know up-front the kinds of menus you need and the exact number of menu items and submenus in your menus, you can generate static menus. Conversely, if you don’t know how many menus you need or the number of items your menu will contain, or even what is in your menus, you can create dynamic menus.

Whether you generate static or dynamic menus, the relationships remain the same between menus, their owners, and their child widgets. Figure 22–3 shows the menu hierarchy.

Figure 22–3: Menu Hierarchy

At the top of the menu hierarchy is the menu bar or pop-up menu. Menus are the parents of menu items and/or submenus. Each child submenu can, in turn, be the parent of menu items and submenus. Your application can have multiple levels of nested submenus.

Note that menus themselves do not have parents; instead, they have owners. All widgets, except images, rectangles, text, labels, menus, menu-items, and submenus, can be menu owners. Windows are the only widgets that can own a menu bar. All the other widgets can own only a pop-up menu.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095