Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnItemSelect picture event
Declaration
Global handler:
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnItemSelect(IN INT _refId) ; script actions END OnItemSelect |
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY XXX_OnItemSelect ; script actions END XXX_OnItemSelect |
Parameters
_refId | Parameter of the INT type (required for global handler). |
XXX | Name of Reference variable connected to graphic object (without the character "_"). |
Description
Example
Special picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture event handler: Change of selected line in the list ; with reference variable_List assigned |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY List_OnItemSelect |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; script actions END List_OnItemSelect |
Global picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture events handler: Change of selected line in all lists and |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; displayers of Browser type that have no special handler defined |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnItemSelect(IN INT _refId) |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; _refId - value of Reference local variable assigned to graphic object IF _refId = _List THEN ; test that determines where selected line was changed ; script actions |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENDIF END OnItemSelect |
Note
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.
Info | ||
---|---|---|
| ||