OnAXEvent picture event


Declaration
Global handler:
 ENTRY OnAXEvent(IN INT _refId)
 ; script actions
 END OnAXEvent

Special handler:
 ENTRY XXX_OnAXEvent
 ; script actions
 END XXX_OnAXEvent

Parameters
_refId Parameter of INT type (required for global handler).
XXX Name 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:
 
ENTRY AX_CAL_OnAXEvent(IN  TEXT _eventName)
  %HI_AddItem(_List, _eventName + %IToStr(%HI_AXGetParamsNr()),1)
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.


0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .