Promotic
WikipediaLinkedInYoutubeTwitterFacebook

onMenuFill - event of object PmgObject

Description:
The event is triggered after pressing by the right mouse button over the Pmg object. In this event it is possible to fill in the menu, thus it is the request to create the menu. The event is called each time the menu is displayed and therefore the menu may have different content each time, created by this script.

If the user selects some item from the local menu, then the onMenuSelect event is triggered.

Parameters:
pMe(Object) Reference to the PmgObject object where the event rises.
pEvent(Object) Reference to object describing detailed information about the specific event.
pEvent.Menu - (Object) The object of the PmMenu type that represents the list of menu (local or system) items. At the beginning this object has no items. In this event it is possible to fill in this object with requested items by the AddMenu method and to create an arbitrary menu. Caution! It is not allowed to save the reference to this object for the later use.
Note:
- This event will be called only if the "Control enabled" configurator is checked.
- This event is also functional in Web panels.
- This event is not functional for object: PmgRoot, PmgActiveX.
 
The event is triggered in the PmgButton object also after pressing the left mouse button if the "Open the local menu also by left mouse button" configurator is set.
Example:
See: Example in the description of the AddMenu object
PROMOTIC 9.0.7 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice