The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



SetTextLabel


Unit: SDL_rchart
Class: TSmithChart
Declaration: procedure SetTextLabel (Idx: integer; PosX, PosY: double; TxtColor: TColor; Txt: string; PropertyTemplate: integer);

The method SetTextLabel can be used to set the properties of a user defined text label and make the particular label visible. The parameter Idx holds the index of the text label (in the range of 1 to MaxTxtLbl). The parameters PosX and PosY define the position of the label (real and imaginary part of the complex reflection coefficient), the parameter TxtColor specifies the color of the text, and the parameter Txt contains the text.

All other formatting options of the new text label either are obtained from an existing label addressed by the parameters PropertyTemplate (which is the number of the template label [1..MaxTxtLbl ]), or are set to the following default values, if PropertyTemplate is zero or invalid:

AttachToData true
Alignment taCenter
ColorBkg ChartColor
ColorBrd ChartFrameColor
ShadowDx 0
ShadowDy 0
ColorShadow clGray
Transparent false
Mode tlSimple



Last Update: 2023-Dec-13