Hi,
I use TeeChart Pro v6.01 with Delphi7.
I have a TeeChart with one point series.
If I write the following code :
Series2.Pointer.Style := psTriangle;
Series2.AddXY(2,2,'',clRed);
Series2.AddXY(3,3'',clRed);
I see 2 red triangle points on my teeChart as expected.
But if I replace the first line by :
Series2.Pointer.Style := psCross;
I see 2 cross points but instead of being red, they are grey...
Is it a bug ? Does anyone has already see that ??
Thank you by advance,
Verane.[/b]
Color not taken into account when Pointer.Style = psCross
Hi Verane,
this is not a bug, it's by default, you can change the color using the following code :
this is not a bug, it's by default, you can change the color using the following code :
Code: Select all
Series1.Pointer.Pen.Color := clred;
Series1.Pointer.Style := psCross;
Series1.AddXY(2,2,'',clRed);
Series1.AddXY(3,3,'',clRed);
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi, Verane.
For some pointer styles (cross, diag-cross, star, ..) the internal drawing algorithm is using Pointer.Pen properties to draw specific symbol. If you want to change this, you could use the following code:
For some pointer styles (cross, diag-cross, star, ..) the internal drawing algorithm is using Pointer.Pen properties to draw specific symbol. If you want to change this, you could use the following code:
Code: Select all
points1.Pointer.Style := psStar;
points1.ColorEachPoint := True;
points1.AddXY(2,2,'',clRed);
points1.AddXY(3,3,'',clYellow);
points1.AddXY(4,1,'',clLime);
Marjan Slatinek,
http://www.steema.com
http://www.steema.com