Hi, I think you fixed bug for TeeChart VCL version 8 (TV52014124) but we are using 2010. I just installed it but I still did not get TLineSeries color that changed in run-time. They are keeping design-time colors! The only solution is to create all series from scratch.
Thanks, Fred
Unable to change SeriesColor for TLineSeries (2010)
Re: Unable to change SeriesColor for TLineSeries (2010)
Hello Fred,
You are right. I have added your request in bug list with number [TV52015199]. We will try to fix it for next versions of TeeChart VCL.
Thanks,
You are right. I have added your request in bug list with number [TV52015199]. We will try to fix it for next versions of TeeChart VCL.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Unable to change SeriesColor for TLineSeries (2010)
Hi Fred,
I found that this issue can be solved with a couple of simple changes at DrawPoint nested method in TCustomSeries.DrawValue at Series.pas:
We are investigating why this was changed. If everything is correct we will add the fix to the next maintenance release.
I found that this issue can be solved with a couple of simple changes at DrawPoint nested method in TCustomSeries.DrawValue at Series.pas:
Code: Select all
if (not View3D) and FDrawLine then
begin
// ???
if LinePen.Color <> clBlack then
begin
if LinePen.Color <> SeriesColor then
begin
tmpColor:=LinePen.Color;
SeriesColor:=LinePen.Color;
end;
end
else
LinePen.Color:=SeriesColor;
CheckMaxPixelXY;
DrawLine2D;
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 48
- Joined: Tue Aug 03, 2010 12:00 am
Re: Unable to change SeriesColor for TLineSeries (2010)
This worked for me! Hopefully is a permanent fix!
Thanks,
Steve
Thanks,
Steve
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Unable to change SeriesColor for TLineSeries (2010)
Hi Steve,
A client found an issue with previous code and I think I found a better solution to TV52015199 which is using this code:
Can you please test if this works fine at your end?
Thanks in advance.
A client found an issue with previous code and I think I found a better solution to TV52015199 which is using this code:
Code: Select all
if (not View3D) and FDrawLine then
begin
if ColorEachLine then
tmpColor:=ValueColor[ValueIndex]
else
if LinePen.Color <> clBlack then
begin
if LinePen.Color <> SeriesColor then
begin
tmpColor:=LinePen.Color;
SeriesColor:=tmpColor;
end;
end
else
tmpColor:=SeriesColor;
CheckMaxPixelXY;
DrawLine2D;
end;
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |