Page 1 of 1

color of line to text box

Posted: Tue Apr 23, 2013 1:01 pm
by 10049920
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.

Re: color of line to text box

Posted: Tue Apr 23, 2013 2:02 pm
by yeray
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;

Re: color of line to text box

Posted: Thu Apr 25, 2013 1:22 pm
by 10049920
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;

Re: color of line to text box

Posted: Thu Apr 25, 2013 2:33 pm
by yeray
Hello,

Try this:

Code: Select all

seriesPt.Marks.Callout.Arrow.Color:=clRed;

Re: color of line to text box

Posted: Thu Apr 25, 2013 6:25 pm
by 10049920
Thanks, that worked good.