%HI_SetGraphXYText function


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


Declaration
%HI_SetGraphXYText(
   INT in refId,
   INT in _lineNr,
   REAL in _x,
   REAL in _y,
   TEXT in _text
 )
Parameters
refIdGraph reference (reference variable).
lineNrNumber of the line to which the description relates.
xCenter of the text for x- position.
yCenter of the text for y- position.
textDisplayed text.
Description
Function sets location and content of descriptive text displayed in graph on position _x, _y, and relates to functions HI_SetGraphXYToolTipText, %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,
  • maximum number of descriptive texts is 20.
Example
%HI_SetGraphXYText(  _Graph, 1, 8.0, 2.0, "Val: 8.0, 2.0")

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .