XtraPopupMenu provides a scripting interface to the context menu created with the Developer Express XtraBars Suite.
Supported component versions: Developer Express XtraBars ver. 3.6.x, 6.1, 6.3, 7.x, 8.2 - 10.1, 11.2, 12.1 - 18.1.3, 19.1.3, 20.1.6, 21.1.3.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
Objects that correspond to .NET controls.
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
XtraPopupMenu object that provides access to the control’s context menu.
Using the returned object, you can select items from the context menu, but it must be opened on screen first. You can open the menu by sending an Application keypress to the window, or by calling
ClickR on it. See the
XtraPopupMenu object description for more information on available menu actions.
Note for XtraForm users: When testing context menus in a .NET application that uses Developer Express XtraForm forms, the following problem may occur: If a test invokes a popup menu and selects a command from it several times in succession, the “Cannot obtain the popup menu” error may occur at a certain iteration during the test run. The problem is caused by the specifics of the XtraForm forms. If you encounter this problem, we recommend that the tested application’s developers contact Developer Express support for assistance in resolving the problem.
To access main menus created with the Developer Express XtraBars Suite, use the
XtraPopupMenu property is only available if the Developer Express Control Support plugin is installed. Otherwise, this property is absent in the window’s property list.
To view an example that demonstrates how to use the
XtraPopupMenu property, see Working With XtraBars Controls.