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
_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:
 
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 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.