Page 1 of 1

TColorLineTool.Annotation value set designtime not respected

Posted: Mon Feb 27, 2017 8:51 pm
by 16579731
Hi,

Delphi 10.1 Upd2, FMX, TChart V2016.19.161025

Not sure if I'm overlooking something here, but try this in designtime:
- Add a TColorLineTool to a TChart
- In the property editor for the TColorLineTool, set the AnnotationValue property to true to see the Annotation designtime.
- Now set the AnnotationValue property to false, and the Annotation will still be displayed.

Leo

Re: TColorLineTool.Annotation value set designtime not respected

Posted: Tue Feb 28, 2017 11:22 am
by yeray
Hello Leo,

The action of setting the AnnotationValue to true sets the TAnnotationTool's Shape.Text property in the dfm, and setting the AnnotationValue property back to false isn't resetting it.
The same happens in VCL.
I've added it to the public tracker.
http://bugs.teechart.net/show_bug.cgi?id=1806

In the meanwhile, you can go to the "Text View" of the dfm and set an empty string to the TAnnotationTool's Shape.Text property, or remove that line.

Re: TColorLineTool.Annotation value set designtime not respected

Posted: Tue Feb 28, 2017 11:48 am
by yeray
Hello again,
Yeray wrote:I've added it to the public tracker.
http://bugs.teechart.net/show_bug.cgi?id=1806
This is just to let you know this has already been fixed for the next maintenance release.