ShowMenu - method of the PmgObject object
Description:
Opens context menu of the Pmg object.
Note:
By default the context menu is open automatically after pressing by the right mouse button over the
Pmg object (or the left mouse button can be used or by the
space key - if the "
Open the context menu also by the left mouse button" configurator is set). In such case it is not needed to call this method.
This method can be called for non-standard menu opening, for example, if you need to open the menu by clicking the mouse only in a predefined region of the
Pmg object, etc.
The context menu of the
Pmg object can be created by filling of events:
onMenuFill and
onMenuSelect (see Example in the description of the
AddMenu object).
This method is also functional in
Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oObject = pMe.Items("/Txt0");
oObject.ShowMenu();
Dim oObject
Set oObject = pMe.Items("/Txt0")
oObject.ShowMenu