UICtrlMainMenu Property

Applies to TestComplete 15.20, last modified on January 19, 2022

Description

This property provides a scripting interface to the main menu created with the Janus UI Controls for .NET.

Supported component versions: Janus UIBars Control V3.0.0.25, V4.0.50.
Janus UIBars Control V2.0.1188.0 is not supported.

Declaration

TestObj.UICtrlMainMenu

Read-Only Property A Menu object
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following object:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

A Menu object that corresponds to the UICommandBar component that serves as the window's main menu.

Remarks

If the tested application has several menu bars, the UICtrlsMainMenu property provides access to the menu bar that was first added to the form in the application code.

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.

This property is available if the Janus Systems Control Support plugin is installed.

See Also

MainMenu Property
PopupMenu Property (Window Objects)
SystemMenu Property
Simulating Menu Actions

Highlight search results