Legend border issue with 2014

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
johnnix
Advanced
Posts: 192
Joined: Tue Jul 10, 2007 12:00 am

Legend border issue with 2014

Post by johnnix » Thu Jun 19, 2014 2:33 pm

Hello,

Attached you can see that switching the visibility of the legend title affects the border rectangle (latest TChar Pro 2014, XE6, Windows 8.1)
Attachments
Legend title off.gif
Legend title off.gif (14.64 KiB) Viewed 11027 times
Legend title on.gif
Legend title on.gif (15.85 KiB) Viewed 11003 times

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

Re: Legend border issue with 2014

Post by Yeray » Fri Jun 20, 2014 11:25 am

Hello,

Take a look at the project attached. I can't reproduce the problem with it, can you?
testLegendTitle.zip
(1.88 KiB) Downloaded 913 times
Could you please modify it so we can reproduce the problem here?

Thanks in advance.
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

johnnix
Newbie
Newbie
Posts: 38
Joined: Thu Nov 28, 2013 12:00 am

Re: Legend border issue with 2014

Post by johnnix » Fri Jun 20, 2014 12:55 pm

Hello,

Take a look now (I pasted my original plot). Please also notice that the left axis title does not appear to be drawn around the middle of the axis rather than starts from the middle.

Regards
Attachments
Project1.zip
(4.53 KiB) Downloaded 858 times

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

Re: Legend border issue with 2014

Post by Yeray » Fri Jun 20, 2014 3:31 pm

Hello,
johnnix wrote:Take a look now (I pasted my original plot).
I've reproduced it with v2014.11 but not with the actual sources, so I'd expect this to be fixed with the next maintenance release.
At Chart.pas you'll find a nested function with the signature:

Code: Select all

Function CalcColumnsWidth(NumLegendValues:Integer):Integer;
Just add this at the beginning of this function:

Code: Select all

ParentChart.Canvas.AssignFont(Font);
johnnix wrote:Please also notice that the left axis title does not appear to be drawn around the middle of the axis rather than starts from the middle.
I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=809
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

johnnix
Newbie
Newbie
Posts: 38
Joined: Thu Nov 28, 2013 12:00 am

Re: Legend border issue with 2014

Post by johnnix » Fri Jun 20, 2014 5:43 pm

This is great, thank you so much!!!!

Regards

John

Post Reply