HI_SetGraphXYToolTipText

HI_SetGraphXYToolTipText

%HI_SetGraphXYToolTipText function


Function

Function sets location and content of the tooltip text displayed in graph on position _x, _y.

Declaration

%HI_SetGraphXYToolTipText( INT in refId, INT in _lineNr, REAL in _x, REAL in _y, TEXT in _text )

Parameters

refId

Graph reference (reference variable).

lineNr

Number of line, the description relates to.

x

Center of the text for x- position.

y

Center of the text for y- position.

text

Displayed text.

Description

Function sets location and content of the tooltip text displayed in graph on position _x, _y, and relates to functions %HI_SetGraphXYText and %HI_SetGraphXYTextParams.

It is possible to enter descriptive texts for object X, Y graph, these are displayed in the graph sheet.
Common parameters for these actions are:

  • type of description (Tooltip - %HI_SetGraphXYToolTipText, Standard text - %HI_SetGraphXYText),

  • text coordinates X, Y (for Tooltip identical with the coordinate on the line, not needed for standard text),

  • number of line, the description relates to (after "delete" the line, descriptive texts are deleted also),

  • if the line is not visible, neither the texts related to the line are visible,

  • font (HBJ to object text style) (not valid for Tooltip),

  • text color (RBG) (not valid for Tooltip),

  • set texts are valid till new data for line are set.

Example

%HI_SetGraphXYToolTipText( _Graph, 1, 8.0, 2.0, "Val: 8.0, 2.0")