onSystemMenuFill - event of the PmaRoot object
The event is triggered when the system menu is displayed. 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 onSystemMenuSelect event is triggered.
|pMe||(Object) Reference to the PmaRoot object where the event rises.|
|pEvent||(Object) Reference to object describing detailed information about the specific event.|pEvent.Menu
) 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 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.
The application system menu is accessible via PROMOTIC icon located in bottom right next to the clock (Tray) (Configurator Icon in Sys Tray on the right
). In the system menu, there are always options for displaying the INFO system
and stopping the application. The visibility and functionality is not dependant on scripts, (if the VBScript
core is damaged and the scripts do not work, the INFO system is still available and working). Additional options can be included in this event in the script, and and also the user input/selection is controlled by script.
See: Example in the description of the AddMenu