ENTRY OnUserInput(IN INT _refId) ; script actions END OnUserInput |
ENTRY XXX_OnUserInput ; script actions END XXX_OnUserInput |
_refId | Parameter of INT type (required for global handler). |
XXX | Name of Reference variable connected to graphic object (without the character "_"). |
If a graphic object not connected with given reference variable closes a control window, it will activate the global handler of the picture event OnUserInput and the value of the parameter _refId will be 0.
; picture event handler: Closing the control window of the graphic object |
; with reference variable _entry assigned |
ENTRY entry_OnUserInput ... |
END entry_OnUserInput |
; picture events handler: Closing the control window of a graphic object ; with no defined special handler of the picture event |
ENTRY OnUserInput(IN INT _refId) |
; _refId - value of reference local variable assigned to graphic object IF _refId = _entry THEN ; test that determines above which graphic object |
; the control window was closed |
... |
ELSIF _refId = 0 THEN |
; there were closed the control window of graphic object with |
; no defined reference variable |
ENDIF END OnUserInput |