Porovnávané verzie

Kľúč

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

OnGotFocus picture event


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

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

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

 
Global picture event handler:
 

Blok kódu
languageesl
themeRDark
 ENTRY OnGotFocus(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 OnGotFocus 
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