OnSpin
OnSpin picture event
Declaration
Global handler:
ENTRY OnSpin(IN INT _refId)
; script actions
END OnSpin
Special handler:
ENTRY XXX_OnSpin
; script actions
END XXX_OnSpinParameters
_refId | Parameter of 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 Spin button type.
Example
Special picture event handler:
; picture event handler: Clicking the spin button
; with reference _Spin assignedENTRY Spin_OnSpin ; script actions
END Spin_OnSpin
Global picture event handler:
; picture events handler: Clicking a spin button ; with no special handler definedENTRY OnSpin(IN INT _refId); _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 ENDIF
END OnSpinNote
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.
Related pages: