OnItemSelect
OnItemSelect picture event
Declaration
Global handler:
ENTRY OnItemSelect(IN INT _refId)
; script actions
END OnItemSelect
Special handler:
ENTRY XXX_OnItemSelect
; script actions
END XXX_OnItemSelectParameters
_refId | Parameter of INT type (required for global handler). |
XXX | Name of Reference variable connected to graphic object (without the character "_"). |
Example
Special picture event handler:
; picture event handler: Change of selected line in the list
; with reference variable_List assignedENTRY List_OnItemSelect ; script actions
END List_OnItemSelect
Global picture event handler:
; picture events handler: Change of selected line in all lists and ; displayers of Browser type that have no special handler definedENTRY OnItemSelect(IN INT _refId); _refId - value of Reference local variable assigned to graphic object
IF _refId = _List THEN ; test that determines where selected line was changed
; script actions ENDIF
END OnItemSelectNote
If both the handlers are defined in picture script, the global handler will never be called for _refId=List, because a special handler is already defined.
Related pages: