Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnGraphBtnClick picture event
Declaration
Global handler:
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnGraphBtnClick(IN INT _refId, IN INT _LineNr) ; script actions END OnGraphBtnClick |
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY XXX_OnGraphBtnClick(IN INT _LineNr) ; script actions END XXX_OnGraphBtnClick |
Parameters
_refId | Required input parameter of INT type for global handler. |
XXX | Name of the reference variable assigned to graphic object (without the character "_"). |
_LineNr | Serial number of the graphic flow, the button of which was pressed. |
Description
The picture event is being generated when clicking given user button placed in the graph area.
Example
Special picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture event handler: clicking the user button in |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; the displayer of Graph type with reference variable GRAPH assigned |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY GRAPH_OnGraphBtnClick(IN INT _LineNr) |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; actions END GRAPH_OnGraphBtnClick |
Global picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture events handler: Clicking the user button in displayers of Graph type |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; that have no special picture event handler defined |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnGraphBtnClick (IN INT _refId, IN INT _LineNr) |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; _refId - value of reference variable that assigned graphic object IF _refId = _GRAPH THEN ; test that checks the displayer, where the picture event occurred |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; actions |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENDIF END OnGraphBtnClick |
Note
If both the handlers are defined in picture script, global handler will never be called for _refId=_List, because the special handler is already defined.
Info | ||
---|---|---|
| ||