This property provides a scripting interface to the window's main menu.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The property is applied to the following objects:
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Menu object that corresponds to the window's main menu.
After you obtain the menu, you can select items from this menu using the returned object. See the description of the
Menu Object for more information on available menu actions.
To access a Java application’s main menu or menus created with other popular components, use the following properties (these properties are added to the
Window object if the corresponding extension for the custom component is installed):
||Borland Action Menu Bar|
||ComponentOne Menus and Toolbars|
||Syncfusion Essential Tools Menus|
||Java Application Main Menu|
||Microsoft MenuStrip Class Library|
||Janus UI Controls|
||Developer Express XtraBars|
To view an example that demonstrates how to use the
MainMenu property, see Simulating Menu Actions.