Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnGraphValueToolTipText picture event
Declaration
Global handler:
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnGraphValueToolTipText(IN INT _refId, IN INT _LineNr, IN REAL _value, IN OUT TEXT _toolTipTitle, IN OUT TEXT _toolTipText) ; akcie END OnGraphValueToolTipText |
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY XXX_OnGraphValueToolTipText(IN INT _LineNr, IN REAL _value, IN OUT TEXT _toolTipTidle, IN OUT TEXT _toolTipText) ; akcie END XXX_OnGraphValueToolTipText |
Parameters
_refId | Required input parameter of the Int type for global event handler. |
XXX | Name of reference variable connected to graphic object without the character "_". |
_LineNr | Serial number of graphic flow when the button was pressed. |
_value | Value for which the ToolTip will be displayed. |
_toolTipTitle | Return value - title displayed in ToolTip. |
_toolTipText | Return value - text displayed in ToolTip. |
Description
The picture event is generated by displayer of Graph type before the text in ToolTip is displayed. Parameter _value contains the proper value and timestamp.
Texts, generated automatically, are put in the form of value into the parameters _toolTipTitle and _toolTipText. After picture event handler ends these texts will display. This feature allows to change the display text. If parameter _toolTipTitle is set on invalid value by event handler, the ToolTip will not display.
Texts, generated automatically, are put in the form of value into the parameters _toolTipTitle and _toolTipText. After picture event handler ends these texts will display. This feature allows to change the display text. If parameter _toolTipTitle is set on invalid value by event handler, the ToolTip will not display.
The event is generated only if graphic flow has been configured as interactive with tooltip.
Example
Global picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY GRAPH_OnGraphValueToolTipText(IN INT _LineNr,IN REAL _value, TEXT _toolTipTitle, TEXT _toolTipText) _toolTipTitle:= "Water temperature" _toolTipText:= %IToStr(_value) + "°C" END GRAPH_OnGraphValueToolTipText |
Info | ||
---|---|---|
| ||