Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Events - page of object PmObject

Description:
The page serves for the definition of the events algorithms. The algorithm is performed just when the event to which the algorithm is assigned, occurs. Algorithms on this page are written in the text form of the VBScript language syntax. The page is common to more objects, controlling see Basic control of script editor. The common description is in the PmObject object.
Configuration items:
EventsList of object events. After choosing the event it is possible to define the script that has to be performed after the initialization of the event. Object events are described in the description on the concrete Events page of the concrete Promotic object. After pressing the F1 key, the help for selected event is called.
ParametersList of script parameters. Each parameter represents the assigned value. For example, the value of the parameter pMe is the reference to the Promotic object that owns the Events page where this parameter is defined. Parameters on the Events page are described in the description on the concrete Events page of the concrete Promotic object.
Edit By clicking the button the edit window for the script can be opened, the window that servers for easy definition of the script (it is the full screen window, cursor coordinates are displayed on the bottom of the window, which is useful for errors detection in the script).
Parameters common to all events:
pMeReference to the Promotic object where the event rises.
pEventA referrence to object describing detailed information about the specific event.

If more specific event definition is needed, then this kind of information is available as pEvent object property and the property is listed in the script editor.

A major portion of the available events do not need any additional information, in such case the pEvent object does not have any properties and therefore it is unsubstantial. However some events (e.g. PmRoot.onKeyPress) require additional information (e.g. the code of key pressed). In such case this information can be found in the pEvent.Code property.

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