OnGotFocus

OnGotFocus

OnGotFocus picture event


Declaration

Global handler:

ENTRY OnGotFocus(IN INT _refId) ; script action END OnGotFocus


Special handler:

ENTRY XXX_OnGotFocus ; script action END XXX_OnGotFocus

Parameters

_refId

Parameter of 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:

 

ENTRY List_OnGotFocus ; script actions END List_OnGotFocus

 

Global picture event handler:

 

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.