Use OWNER, PARENT, FIRST-CHILD, and NEXT-SIBLING
- Last Updated: December 29, 2023
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
In this section, you complete the menu item for the sample window.
To define a CHOOSE trigger for the Help About
item:
|
This displays some information about the menu to show you this information:
- The menu itself has the window as an
OWNER, not aPARENT. - Each menu item has attributes, such as its
LABEL, that you can query and set as you can for other objects. - Each menu item and submenu has a
PARENTattribute that leads you up through the menu hierarchy. - Each parent object has a
FIRST-CHILDattribute. Using that and theNEXT-SIBLINGattribute of each child, you can identify all the objects at any level in the menu tree.
This figure shows what you see when you run the window and select .
Look at the code
Now look at the statements the AppBuilder generated when you built the menu. You can also see this code in the Code Preview window.
First the code defines each submenu:
|
Once all the submenus are defined, the code defines the menu bar itself:
|
After the window is defined, the menu bar is attached to the window:
|