Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnItemChange picture event
Declaration
Global handler:
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnItemChange(IN INT _refId, IN INT _row, IN INT _col) ; script actions END OnItemChange |
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY XXX_OnItemChange(IN INT _row, IN INT _col) ; script actions END XXX_OnItemChange |
Parameters
_refId | Parameter of the INT type (required for global handler). |
XXX | Name of Reference variable connected to graphic object (without the character "_"). |
_row, _col | Row, 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 | ||||
---|---|---|---|---|
| ||||
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 | ||||
---|---|---|---|---|
| ||||
ENTRY OnItemChange(IN INT _refId, INT _row, INT _col) |
Blok kódu | ||||
---|---|---|---|---|
| ||||
IF _refId = _browser THEN ; test that determines the Browser, where the picture event occurred |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; script actions |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENDIF END OnItemChange |
Info | ||
---|---|---|
| ||