ENTRY OnLostFocus(IN INT _refId)
; script actions
END OnLostFocus
Special handler:
ENTRY XXX_OnLostFocus
; script actions
END XXX_OnLostFocus
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 event is being generated when the Windows control (specified by its reference variable _refId) loses focus.
Example
Special picture event handler:
ENTRY List_OnLostFocus
; script actions
END List_OnLostFocus
Global picture event handler:
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.
0 komentárov