onSystemMenuFill - event of object PmRoot
Fires on displaying system menu. 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 fired.
|pMe||(Object) Reference to the PROMOTIC object where the event rises.|
|pEvent||(Object) A referrence 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 in this object with requested items by means of 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) or via the icon located on the window header of the PmWorkspace
object. 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, (so if even 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 by script, and and also the user input/selection is controlled by script.