Tools / TExtraLegendTool broken in TeeChart pro v2014
Tools / TExtraLegendTool broken in TeeChart pro v2014
Hi,
I've been unable to use the TExtraLegendTool recently, regardless of the legend options, the extra legend does not show anywhere on the chart.
After a while, i've realised that the TeeChart Pro demo 2014 exhibits the same behavior.
I might be mistaken, but it looks like a regression no ?
See attached screenshots.
Don't hesitate to contact me for further information,
(Note : i've source code access, if the fix is simple enough, i'll be really interested in a patch to fix this)
Thanks in advance for your help,
Regards,
I've been unable to use the TExtraLegendTool recently, regardless of the legend options, the extra legend does not show anywhere on the chart.
After a while, i've realised that the TeeChart Pro demo 2014 exhibits the same behavior.
I might be mistaken, but it looks like a regression no ?
See attached screenshots.
Don't hesitate to contact me for further information,
(Note : i've source code access, if the fix is simple enough, i'll be really interested in a patch to fix this)
Thanks in advance for your help,
Regards,
- Attachments
-
- current behavior
- extra_legend_2014.png (165.73 KiB) Viewed 18934 times
-
- Expected behavior
- extra_legend_2010.jpg (299.71 KiB) Viewed 18852 times
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
I forget to mention the version i'm using : TeeChart pro v2014.10.140220.
Thanks in advance,
Regards,
Thanks in advance,
Regards,
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
in the latest demo of Multiple Legend in the demo of Tee9New_win32.exe
(GDI+ selection/deselection does not impact the resulting output)
Bottom line is, getting multiple legend is a tricky business in version 2014.10.140220 (VCL)
Thanks in advance for your help,
Regards,
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
Hello,
http://bugs.teechart.net/show_bug.cgi?id=755
Feel free to add your mail to the ticket CC list to be automatically notified when an update on it arrives.
http://bugs.teechart.net/show_bug.cgi?id=756
I've reproduced the problem so I've added it to the public tracker:dsn wrote:I've been unable to use the TExtraLegendTool recently, regardless of the legend options, the extra legend does not show anywhere on the chart.
After a while, i've realised that the TeeChart Pro demo 2014 exhibits the same behavior.
I might be mistaken, but it looks like a regression no ?
http://bugs.teechart.net/show_bug.cgi?id=755
Feel free to add your mail to the ticket CC list to be automatically notified when an update on it arrives.
I've also reproduced this and added it to the public tracker:dsn wrote:On a side (and probably unrelated note), there seems to be a slight glitch in the legend-canvas drawing stuff
in the latest demo of Multiple Legend in the demo of Tee9New_win32.exe
(GDI+ selection/deselection does not impact the resulting output)
http://bugs.teechart.net/show_bug.cgi?id=756
As you'll see, I've found a possible fix for the second. Feel free to implement the change in your sources.dsn wrote:Bottom line is, getting multiple legend is a tricky business in version 2014.10.140220 (VCL)
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
This hasn't been fixed already?
Please note that this issue is exactly 1 year old, which is unacceptable in my opinion.
Please note that this issue is exactly 1 year old, which is unacceptable in my opinion.
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
Hello Bert,
Excuse us for the delayed reply here.
We closed both tickets as "fixed" a week ago:
http://bugs.teechart.net/show_bug.cgi?id=755
http://bugs.teechart.net/show_bug.cgi?id=756
Since you own the sources, you can apply the changes to them and recompile them.
The change is quite simple actually:
- At Chart.pas, move CalcRect from the private section on TCustomChartLegend class to the protected section.
- At TeeExtraLegendTool.pas, call TLegendAccess(Legend).CalcRect before Legend.DrawLegend:
Excuse us for the delayed reply here.
We closed both tickets as "fixed" a week ago:
http://bugs.teechart.net/show_bug.cgi?id=755
http://bugs.teechart.net/show_bug.cgi?id=756
Since you own the sources, you can apply the changes to them and recompile them.
The change is quite simple actually:
- At Chart.pas, move CalcRect from the private section on TCustomChartLegend class to the protected section.
- At TeeExtraLegendTool.pas, call TLegendAccess(Legend).CalcRect before Legend.DrawLegend:
Code: Select all
procedure TExtraLegendTool.ChartEvent(AEvent: TChartToolEvent);
begin
inherited;
if (AEvent=cteAfterDraw) then
begin
if Assigned(ParentChart) and Assigned(Series) then
begin
Legend.Series:=Series; // call getter
if Legend.Visible then
begin
TLegendAccess(Legend).CalcRect;
Legend.DrawLegend;
end;
end;
end;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
Hello Yeray,
The fix works fine, thanks.
I am still using version 2014.12.140923 and had to change the TCustomChartLegend class. This class has been renamed since then?
Bert
The fix works fine, thanks.
I am still using version 2014.12.140923 and had to change the TCustomChartLegend class. This class has been renamed since then?
Bert
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
Hi Bert,
TCustomChartLegend class is defined in Chart.pas unit in the actual sources and also in v2014.12. I'm not sure to understand your doubt.Bert B. wrote:I am still using version 2014.12.140923 and had to change the TCustomChartLegend class. This class has been renamed since then?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
Hello Yeray,
You wrote about a change in the TCustomLegend class but I had to change the TCustomChartLegend class.
Bert
You wrote about a change in the TCustomLegend class but I had to change the TCustomChartLegend class.
Bert
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
Hi Bert,
I'll edit the post above to correct it.
I'm sorry, I missed the "Chart" part in the TCustomChartLegend.Bert B. wrote: You wrote about a change in the TCustomLegend class but I had to change the TCustomChartLegend class.
I'll edit the post above to correct it.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
We do suffer from this issue, too. We need to create a Chart showing a CustomLegend which diesn't show. Unfortunately we do not have the sources.
So my question: when this issue will be fixed for public?
Thanks in advance!
Klaus
So my question: when this issue will be fixed for public?
Thanks in advance!
Klaus
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
Hi Klaus,
We'll prepare a test installer and we'll send you a mail with the link to it asap.
The next maintenance release should include these fixes. However, I'm afraid I can't tell you when the it will be published.cvita wrote:when this issue will be fixed for public?
We'll prepare a test installer and we'll send you a mail with the link to it asap.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
Hi Klaus,
Could you please tell us what IDE are you interested in?Yeray wrote:We'll prepare a test installer and we'll send you a mail with the link to it asap.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
Hello Yeray!
It would be really great to have this fix ASAP. Thanks for the offer!
We use currently Delphi XE5.
Regards and thanks again,
Klaus
It would be really great to have this fix ASAP. Thanks for the offer!
We use currently Delphi XE5.
Regards and thanks again,
Klaus
Re: Tools / TExtraLegendTool broken in TeeChart pro v2014
Hi Klaus,
I've just sent it to the mail account you have registered in this forum.
I've just sent it to the mail account you have registered in this forum.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |