Promotic
WikipediaLinkedInYoutubeTwitterFacebook

onSystemMenuSelect - event of object PmRoot

Description:
The event fires on the selection of an item from the application system menu. The event can be used for controlling the application by the application system menu.
Parameters:
pMe(Object) Reference to the graphic item where the event rises.
pEvent(Object) A referrence to object describing detailed information about the specific event.
pEvent.Name - (String) Identifier of the selected item of the menu. This identifier is defined when item is added by the PmMenu.AddMenu method.
Note:
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.
Example:
See: Example for JavaScript or Example for VBScript in description of the PmMenu object
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice