Porovnávané verzie

Kľúč

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

OnItemChange picture event


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

Special handler:
Blok kódu
languageesl
themeConfluence
 ENTRY XXX_OnItemChange(IN INT _row, IN INT _col) 
 ; script actions
 END XXX_OnItemChange
Parameters
_refIdParameter of the INT type (required for global handler).
XXXName of Reference variable connected to graphic object (without the character "_").
_row, _colRow, column of the item that was changed.
Description
the picture event is being generated by the displayer of the Browser type , if the user finished an item change. Item is defined by its row (the parameter _row) and its column (the parameter _col). The picture event can be used to check a value change.
Example
The picture event handle of the displayer of Browser type with the connected reference variable _browser displays the new value of changed item.

The Browser displays the structured variable _rec.


 
Blok kódu
languageesl
themeRDark
ENTRY browser_OnItemChange(IN  INT _row, IN  INT _col)
   IF _col = 1 THEN
     TEXT _msg
     _msg := "Value = " + %GetLocalItemValue(_rec\HBJ, _row, _col)
     MESSAGE _msg ON _FROM_HIP
   ENDIF
 END browser_OnItemChange
 
 BEGIN
   REDIM _rec[10]
 END

 
Global picture event handler:
 

Blok kódu
languageesl
themeRDark
ENTRY OnItemChange(IN  INT _refId, INT _row, INT _col)
Blok kódu
languageesl
themeRDark
  IF _refId = _browser THEN ; test that determines the Browser, where the picture event occurred  
Blok kódu
languageesl
themeRDark
   ; script actions  
Blok kódu
languageesl
themeRDark
  ENDIF
 END OnItemChange

Info
titleRelated pages:

Picture event handler
Picture events