Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

OnItemSelect picture event


Declaration
Global handler:
Blok kódu
languageesl
themeConfluence
 ENTRY OnItemSelect(IN INT _refId)
 ; script actions
 END OnItemSelect

Special handler:
Blok kódu
languageesl
themeConfluence
 ENTRY XXX_OnItemSelect
 ; script actions
 END XXX_OnItemSelect
Parameters
_refIdParameter of the INT type (required for global handler).
XXXName of Reference variable connected to graphic object (without the character "_").
Description
The picture event is being generated when the user changes currently selected line of Windows control of List box type or displayer of the Browser type.
Example
Special picture event handler:
 

Blok kódu
languageesl
themeRDark
; picture event handler: Change of selected line in the list
 ; with reference variable_List assigned
Blok kódu
languageesl
themeRDark
ENTRY List_OnItemSelect
Blok kódu
languageesl
themeRDark
  ; script actions
 END List_OnItemSelect
 

Global picture event handler:
 

Blok kódu
languageesl
themeRDark
; picture events handler: Change of selected line in all lists and 
Blok kódu
languageesl
themeRDark
; displayers of Browser type that have no special handler defined
Blok kódu
languageesl
themeRDark
ENTRY OnItemSelect(IN  INT _refId)
Blok kódu
languageesl
themeRDark
; _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
languageesl
themeRDark
  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
titleRelated pages:

Picture event handler
Picture events