Porovnávané verzie

Kľúč

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

OnTextChange picture event


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

Special handler:
Blok kódu
languageesl
themeConfluence
 ENTRY XXX_OnTextChange
 ;  script actions
 END XXX_OnTextChange
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 given Windows control of Text entry field type is not active (loosing focus) and its text has been changed. Usually, when the user enters an text and goes to another Windows control.
Example
Special picture event handler:
 



Blok kódu
languageesl
themeRDark
; picture event handler: Change of the text in the text entry field with
 ; reference variable _EField assigned
Blok kódu
languageesl
themeRDark
ENTRY EField_OnTextChange
Blok kódu
languageesl
themeRDark
  ; script actions
 END EField_OnTextChange
 

Global picture event handler:
 

Blok kódu
languageesl
themeRDark
; picture events handler: Change of a text in text entry fields,  
Blok kódu
languageesl
themeRDark
; which has no special handler defined
Blok kódu
languageesl
themeRDark
ENTRY OnTextChange(IN  INT _refId)
Blok kódu
languageesl
themeRDark
; _refId - value of reference local variable assigned graphic object
   IF _refId = _EField THEN ; test that determines the text entry field
                           ; in which the user changed the text
    ; script actions  
Blok kódu
languageesl
themeRDark
  ENDIF
 END OnTextChange 
Note
If both the handlers are defined in picture script, the global handler will never be called for _refId=_EField, because a special handler is already defined.

Info
titleRelated pages:

Picture event handler
Picture events