Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnSpin picture event
Declaration
Global handler:
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnSpin(IN INT _refId) ; script actions END OnSpin |
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY XXX_OnSpin ; script actions END XXX_OnSpin |
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 when the user clicks on the Windows control of the Spin buttontype.
Example
Special picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture event handler: Clicking the spin button ; with reference _Spin assigned |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY Spin_OnSpin |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; script actions END Spin_OnSpin |
Global picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture events handler: Clicking a spin button |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; with no special handler defined |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnSpin(IN INT _refId) |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; _refId - value of reference local variable assigned to graphic object IF _refId = _Spin THEN ; test that determines the spin button ; the user clicked on ; script actions |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENDIF END OnSpin |
Note
If both the handlers are defined in picture script, the global handler will never be called for _refId=_Spin, because a special handler is already defined.
Info | ||
---|---|---|
| ||