Porovnávané verzie

Kľúč

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

OnUserInput picture event


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

Special handler:
Blok kódu
languageesl
themeConfluence
 ENTRY XXX_OnUserInput
 ; script actions
 END XXX_OnUserInput
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 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
languageesl
themeRDark
; picture event handler: Closing the control window of the graphic object
Blok kódu
languageesl
themeRDark
; with reference variable _entry assigned
Blok kódu
languageesl
themeRDark
ENTRY entry_OnUserInput
   ...
Blok kódu
languageesl
themeRDark
END entry_OnUserInput
 

Global picture event handler:

 
Blok kódu
languageesl
themeRDark
; picture events handler: Closing the control window of a graphic object
 ; with no defined special handler of the picture event
Blok kódu
languageesl
themeRDark
ENTRY OnUserInput(IN  INT _refId)
Blok kódu
languageesl
themeRDark
; _refId - value of reference local variable assigned to graphic object
   IF _refId = _entry THEN ; test that determines above which graphic object 
Blok kódu
languageesl
themeRDark
                          ; the control window was closed
Blok kódu
languageesl
themeRDark
     ... 
Blok kódu
languageesl
themeRDark
 ELSIF _refId = 0 THEN 
Blok kódu
languageesl
themeRDark
   ; there were closed the control window of graphic object with  
Blok kódu
languageesl
themeRDark
   ; no defined reference variable  
Blok kódu
languageesl
themeRDark
  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
titleRelated pages:

Picture event handler
Picture events