ShowMenu - method of the PmgObject object
Description:
Opens local menu of the Pmg object.
Note:
By default the local menu is open automatically after pressing by the right mouse button over the
Pmg object (or the left mouse button can be used or
space key - if the "
Open the local menu also by 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 in a predefined region of the
Pmg object, etc.
The local
Pmg object menu can be created by filling in the 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