Porovnávané verzie

Kľúč

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

OnGraphBtnClick picture event


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

Special handler:
Blok kódu
languageesl
themeConfluence
 ENTRY XXX_OnGraphBtnClick(IN INT _LineNr) 
 ; script actions
 END XXX_OnGraphBtnClick
Parameters
_refIdRequired input parameter of INT type for global handler.
XXXName of the reference variable assigned to graphic object (without the character "_").
_LineNrSerial 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
languageesl
themeRDark
 ; picture event handler: clicking the user button in
Blok kódu
languageesl
themeRDark
 ; the displayer of Graph type with reference variable GRAPH assigned
Blok kódu
languageesl
themeRDark
ENTRY GRAPH_OnGraphBtnClick(IN  INT _LineNr) 
Blok kódu
languageesl
themeRDark
  ; actions
 END GRAPH_OnGraphBtnClick 
 

Global picture event handler:
 

Blok kódu
languageesl
themeRDark
 ; picture events handler: Clicking the user button in displayers of Graph type
Blok kódu
languageesl
themeRDark
; that have no special picture event handler defined
Blok kódu
languageesl
themeRDark
ENTRY OnGraphBtnClick (IN  INT _refId, IN  INT _LineNr)
Blok kódu
languageesl
themeRDark
; _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
languageesl
themeRDark
   ; actions
Blok kódu
languageesl
themeRDark
  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
titleRelated pages:

Picture event handler
Picture events