Porovnávané verzie

Kľúč

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

OnLostFocus picture event


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

Special handler:
Blok kódu
languageesl
themeConfluence
 ENTRY XXX_OnLostFocus
 ; script actions
 END XXX_OnLostFocus 
Parameters
_refIdParameter of the Int type (required for global handler).
XXXName of the reference variable assigned to Windows control (without the character "_").
Description
The event is being generated when the Windows control (specified by its reference variable _refId) loses focus.
Example
Special picture event handler:
 

Blok kódu
languageesl
themeRDark
 ENTRY List_OnLostFocus
   ; script actions
 END List_OnLostFocus 

 
Global picture event handler:
 

Blok kódu
languageesl
themeRDark
 ENTRY OnLostFocus(IN INT _refId)
 ; _refId - value of local reference variable assigned to Windows control
   IF _refId = 0 THEN
     ; no reference variable assigned
   ELSIF _refId = _editRefId THEN
     ; script actions
   ENDIF
 END OnLostFocus 
Note
If both handlers are defined in picture script, the global handler will never be called for _refId=_List, because special handler is already defined.

Info
titleRelated pages:

Picture event handler
Picture events