Page 1 of 1

How to add Text to annotation of ColorLineTool

Posted: Tue Aug 12, 2025 8:38 am
by 16594956
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:

Code: Select all

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 1319 times
Best regards,

Thomas

Re: How to add Text to annotation of ColorLineTool

Posted: Mon Aug 18, 2025 2:22 pm
by yeray
Hello Thomas,

Try setting AnnotationValue to False.