Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

OnAXEvent picture event


Declaration
Global handler:


Blok kódu
languageesl
themeConfluence
 ENTRY OnAXEvent(IN INT _refId)
 ; script actions
 END OnAXEvent

Special handler:
Blok kódu
languageesl
themeConfluence
 ENTRY XXX_OnAXEvent
 ; script actions
 END XXX_OnAXEvent
Parameters


_refIdParameter of INT type (required for global handler).
XXXName of reference variable connected to the ActiveX object (without the character "_").
Description
The picture event is being generated by the ActiveX object.
Various ActiveX objects generate various events - e.g. the ActiveX calendar generates the event YearChanged, when the year is being changed. Events generated by ActiveX objects are described in the documentation of corresponding ActiveX object. The picture event OnAXEvent can contains other parameters, accessing the parameters is allowed by the functions HI_AXGetParamsNr, HI_AXGetParam a HI_AXSetParam.
Example
Special picture event handler:
 


Blok kódu
languageesl
themeRDark
ENTRY AX_CAL_OnAXEvent(IN  TEXT _eventName)


Blok kódu
languageesl
themeRDark
  %HI_AddItem(_List, _eventName + %IToStr(%HI_AXGetParamsNr()),1)


Blok kódu
languageesl
themeRDark
END AX_CAL_OnAXEvent
 

Names and the number of parameters of events occurred in the ActiveX object _AX_CAL are to be written into the listbox.


Info
titleRelated pages:

Picture event handler
Picture events