How to add Text to annotation of ColorLineTool

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
X-ray
Newbie
Newbie
Posts: 15
Joined: Thu Dec 15, 2022 12:00 am

How to add Text to annotation of ColorLineTool

Post by X-ray » Tue Aug 12, 2025 8:38 am

Hello TeeChart Team,

How can I add (prefix) some text to the numerical output (Annotation) shown of the TColorLineTool?
I tried to change the Text in the OnDragLine Event like:

procedure TfrmXYPlot.XYLimitDragLine(Sender: TColorLineTool);
begin
Sender.Annotation.Text := 'XY Limit: ' + Sender.Value.ToString;
end;

But that text doesn't show up?
ColorLineToolAnnotation.png
ColorLineToolAnnotation.png (72.55 KiB) Viewed 111 times
Best regards,

Thomas

Post Reply