OnGraphValueToolTipText picture event


Declaration
Global handler:
 ENTRY OnGraphValueToolTipText(IN INT _refId, IN INT _LineNr, IN REAL _value, IN OUT TEXT _toolTipTitle, IN OUT TEXT _toolTipText)
 ; akcie
 END OnGraphValueToolTipText 

Special handler:
 ENTRY XXX_OnGraphValueToolTipText(IN INT _LineNr, IN REAL _value, IN OUT TEXT _toolTipTidle, IN OUT TEXT _toolTipText)
 ; akcie
 END XXX_OnGraphValueToolTipText 
Parameters
_refIdRequired input parameter of the Int type for global event handler.
XXXName of reference variable connected to graphic object without the character "_".
_LineNrSerial number of graphic flow when the button was pressed.
_valueValue for which the ToolTip will be displayed.
_toolTipTitleReturn value - title displayed in ToolTip.
_toolTipTextReturn 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.

The event is generated only if graphic flow has been configured as interactive with tooltip.

Example
Global picture event handler:

 ENTRY GRAPH_OnGraphValueToolTipText(IN INT _LineNr,IN REAL _value,  TEXT _toolTipTitle, TEXT _toolTipText)
 _toolTipTitle:= "Water temperature"
 _toolTipText:= %IToStr(_value) + "°C"
 END GRAPH_OnGraphValueToolTipText 
Napíšte komentár