Progress
Programming
Handbook
Querying Sibling Attributes
For both menus and submenus, your code can traverse all the menu items and nested submenus. You query the FIRST–CHILD attribute of a menu or submenu, which returns the widget handle of the first menu item or child submenu. The code then follows the NEXT–SIBLING attribute to the right, etc. You can achieve the same result by starting with the LAST–CHILD attribute and follow the PREV–SIBLING attribute to the left. All these four attributes are read-only, while the PARENT attribute is read-write. The
p-dymenu.p
procedure traverses the FIRST–CHILD and NEXT–SIBLING attributes of the Reps menu and disables the menu item for each sales rep in the West region.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |