Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnGotFocus picture event
Declaration
Global handler:
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnGotFocus(IN INT _refId) ; script action END OnGotFocus |
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY XXX_OnGotFocus ; script action END XXX_OnGotFocus |
Parameters
_refId | Parameter of the Int type (required for global handler). |
XXX | Name 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 | ||||
---|---|---|---|---|
| ||||
ENTRY List_OnGotFocus ; script actions END List_OnGotFocus |
Global picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
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 | ||
---|---|---|
| ||