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....


Class: TPolChart
Declaration:procedure SetTextLabel (Idx: integer; PosRad, PosPhi: 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 Rad and Phi define the position of the label, 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 ScaleColor
ShadowDx 0
ShadowDy 0
ColorShadow clGray
Transparent false
Mode tlSimple

Last Update: 2012-Oct-20