color of line to text box

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
INL2
Newbie
Newbie
Posts: 22
Joined: Mon Aug 18, 2008 12:00 am

color of line to text box

Post by INL2 » Tue Apr 23, 2013 1:01 pm

I can't figure out how to change the color of the lines from a graph that go to the text boxes when you move them.

I tried
seriesPt.ColorEachLine := True;
seriesPt.Pointer.Pen.Color := clRed;
seriesPt.Pointer.Color := clRed;
ptIdx := seriesPt.AddXY(xval, yval, 'test', clRed);

but the line still comes out white, what am I missing?

Thanks.

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

Re: color of line to text box

Post by Yeray » Tue Apr 23, 2013 2:02 pm

Hi,

Do you mean the callout lines (the lines drawn from the points to the marks)?
Try this:

Code: Select all

seriesPt.Marks.Callout.Pen.Color:=clRed;
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

INL2
Newbie
Newbie
Posts: 22
Joined: Mon Aug 18, 2008 12:00 am

Re: color of line to text box

Post by INL2 » Thu Apr 25, 2013 1:22 pm

I don't know what they are called, see attached image.

I tried the
seriesPt.Marks.Callout.Pen.Color:=clRed;
but it did not work.

Here is code I use to get the attached image.

seriesPt.Marks.Callout.Pen.Color:=clRed; //I also put this at the end of the code below

ptIdx := seriesPt.AddXY(xval, yval);
seriesPt.Marks[ptIdx].Visible := showIt;
seriesPt.Marks[ptIdx].Color := clGreen;
seriesPt.Marks[ptIdx].Pen.Color := clRed;
Attachments
line color.png
line color.png (7.25 KiB) Viewed 7721 times

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

Re: color of line to text box

Post by Yeray » Thu Apr 25, 2013 2:33 pm

Hello,

Try this:

Code: Select all

seriesPt.Marks.Callout.Arrow.Color:=clRed;
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

INL2
Newbie
Newbie
Posts: 22
Joined: Mon Aug 18, 2008 12:00 am

Re: color of line to text box

Post by INL2 » Thu Apr 25, 2013 6:25 pm

Thanks, that worked good.

Post Reply