Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnAXEvent picture event
Declaration
Global handler:
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnAXEvent(IN INT _refId) ; script actions END OnAXEvent |
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
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.
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 | ||||
---|---|---|---|---|
| ||||
ENTRY AX_CAL_OnAXEvent(IN TEXT _eventName) |
Blok kódu | ||||
---|---|---|---|---|
| ||||
%HI_AddItem(_List, _eventName + %IToStr(%HI_AXGetParamsNr()),1) |
Blok kódu | ||||
---|---|---|---|---|
| ||||
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.