Plot annotation

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
dpatch
Newbie
Newbie
Posts: 53
Joined: Mon Jul 02, 2007 12:00 am

Plot annotation

Post by dpatch » Fri Mar 20, 2009 9:02 pm

When I upgraded to v8.04, I started seeing a thin grey line being drawn beneath my plot annotation that I can't seem to prevent. This was not there in my previous version..which was v8.something.

I display the annotation to the right of my plot with the following code:

PlotAnnotation := TAnnotationTool.Create(Self);
PlotAnnotation.ParentChart := Chart1;
PlotAnnotation.Shape.Color := PlotCfg.BackgroundColor;
PlotAnnotation.Shape.ShadowColor := PlotCfg.BackgroundColor;
PlotAnnotation.Shape.Frame.Visible := False;
PlotAnnotation.Text := AnnotationStr;
PlotAnnotation.Shape.CustomPosition := True;
Chart1.MarginRight := 25;
PlotAnnotation.Shape.ShapeBounds.TopLeft.X := Chart1.ChartRect.BottomRight.X + 15;
PlotAnnotation.Shape.ShapeBounds.TopLeft.Y := Chart1.ChartRect.TopLeft.Y;
PlotAnnotation.Visible := True;

I can send a screen shot if you tell me how.
Any thoughts?

dpatch
Newbie
Newbie
Posts: 53
Joined: Mon Jul 02, 2007 12:00 am

Post by dpatch » Fri Mar 20, 2009 9:31 pm

I found how to fix this issue "for me". I added the following line of code:

PlotAnnotation.Shape.Transparent := True;

I think the bug is still there, but is now transparrent. If the annotation shape is not the same color as the background, I think you will still see the issue.

Thanks...

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Mar 23, 2009 9:47 am

Hi dpatch,

The only line I see using your code with v8.04 is the shadow. In case you want to hide it, add the following:

Code: Select all

PlotAnnotation.Shape.Shadow.Visible := False;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply