Multi-line axis labels not supported anymore

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Collinor
Newbie
Newbie
Posts: 12
Joined: Wed Oct 16, 2013 12:00 am

Multi-line axis labels not supported anymore

Post by Collinor » Thu Jul 24, 2014 6:43 am

In contrast to TeeChart 2012, multi-line axis labels are not supported anymore in TeeChart 2014, May, 12, 2014. Only the first line is used for display of the axis label (see TeeEngine.pas, function TChartAxisTitle.GetCaption).
Even if TChartAxisTitle.GetCaption would return all lines, TCustomTextShape.DoDraw, which actually draws the label, would not draw the lines correctly, if the angle is 90.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Multi-line axis labels not supported anymore

Post by Sandra » Thu Jul 24, 2014 3:40 pm

Hello Collinor,

Could you arrange for us a simple example where all the problems you are experiencing appear, because we can check the problems here and fix these if is the case?

Thanks in advance,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Collinor
Newbie
Newbie
Posts: 12
Joined: Wed Oct 16, 2013 12:00 am

Re: Multi-line axis labels not supported anymore

Post by Collinor » Fri Jul 25, 2014 6:10 am

Put a TChart on a form and add the following code:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.MarginBottom := 10;
  Chart1.MarginLeft := 5;
  Chart1.Axes[0].Title.Angle := 0;
  Chart1.Axes[0].Title.Caption := 'Line 1'#13'Line 2'#13'Line 3';
  Chart1.Axes[2].Title.Angle := 90;
  Chart1.Axes[2].Title.Caption := 'Line 1'#13'Line 2'#13'Line 3';
end;
Compile the application once with TeeChart 2012 and once with TeeChart 2014 and then compare the results.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Multi-line axis labels not supported anymore

Post by Sandra » Mon Jul 28, 2014 3:51 pm

Hello Collinor,

Thanks for the code. We've added the problem in VCL TeeChart bugzilla tracker to fix it to upcoming versions of TeeChartVCL with number ID870. Feel Free to add your email account to the ticket so you can be automatically notified when and update arrives.

Thanks in advace,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply