Top
PowerCOBOL V11.0 Reference
FUJITSU Software

2.10 Menu Object

Description:

Menu objects are containers for the MenuItem objects that make up menubars and popup menus.

Details:

You refer to MenuItem objects as properties of the Menu object.

For example to update the Caption property, you code the following:

MOVE ... TO "Caption" OF "MenuItem1" OF Menu1

Menu1 is the Name property of the Menu object, and MenuItem1 is the Name property of the MenuItem object.

Menu objects can be displayed by the PopupMenu method whether or not they are designed as popup menus. However, this is not recommended because menubars and popup menus generally have different structures. For example, the menubar properties of Kind and ShortcutKey have no effect in popup menus.

Similarly, using Menu objects designed as popup menus for menubars is not recommended. For example, separators and check marks in the top level of popup menus have no effect when the menu is displayed as a menubar.

Properties:

Name

Methods:

None

Events:

SelectClose

Corresponding Element in PowerCOBOL V3.0 or earlier:

None