Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnUserInput picture event
Declaration
Global handler:
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnUserInput(IN INT _refId) ; script actions END OnUserInput |
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY XXX_OnUserInput ; script actions END XXX_OnUserInput |
Parameters
_refId | Parameter of the INT type (required for global handler). |
XXX | Name of Reference variable connected to graphic object (without the character "_"). |
Description
The picture event is being generated after closing the control window opened by clicking any graphic object or Windows control of the Push button type.
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.
Example
Special picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture event handler: Closing the control window of the graphic object |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; with reference variable _entry assigned |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY entry_OnUserInput ... |
Blok kódu | ||||
---|---|---|---|---|
| ||||
END entry_OnUserInput |
Global picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture events handler: Closing the control window of a graphic object ; with no defined special handler of the picture event |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnUserInput(IN INT _refId) |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; _refId - value of reference local variable assigned to graphic object IF _refId = _entry THEN ; test that determines above which graphic object |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; the control window was closed |
Blok kódu | ||||
---|---|---|---|---|
| ||||
... |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ELSIF _refId = 0 THEN |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; there were closed the control window of graphic object with |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; no defined reference variable |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENDIF END OnUserInput |
Note
If both the handlers are defined in picture script, the global handler will never be called for _refId=_entry, because a special handler is already defined.
Info | ||
---|---|---|
| ||