Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

OnSpin picture event


Declaration
Global handler:
Blok kódu
languageesl
themeConfluence
 ENTRY OnSpin(IN INT _refId)
 ;  script actions
 END OnSpin

Special handler:
Blok kódu
languageesl
themeConfluence
 ENTRY XXX_OnSpin
 ; script actions
 END XXX_OnSpin
Parameters
_refIdParameter of the INT type (required for global handler).
XXXName 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
languageesl
themeRDark
; picture event handler: Clicking the spin button
 ; with reference _Spin assigned
Blok kódu
languageesl
themeRDark
ENTRY Spin_OnSpin
Blok kódu
languageesl
themeRDark
  ; script actions
 END Spin_OnSpin
 

Global picture event handler:

 
Blok kódu
languageesl
themeRDark
; picture events handler: Clicking a spin button  
Blok kódu
languageesl
themeRDark
; with no special handler defined
Blok kódu
languageesl
themeRDark
ENTRY  OnSpin(IN INT _refId)
Blok kódu
languageesl
themeRDark
; _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
languageesl
themeRDark
  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
titleRelated pages:

Picture event handler
Picture events