Title Add line

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Title Add line

Post by Calou » Mon Aug 31, 2009 3:02 pm

Hello,

How can i do to add a line in a title with delphi?
For example :

This is the first line of my title
this is the second line of my title

I have tried by using #13#10 but it doesn't work

Thanks

Regards

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

Re: Title Add line

Post by Yeray » Mon Aug 31, 2009 4:09 pm

Hi Calou,

Both the following two methods seem to work fine here:

Code: Select all

  Chart1.Title.Text.Text := 'my first line' + #13#10 + 'my second line';

Code: Select all

  Chart1.Title.Text.Clear;
  Chart1.Title.Text.Add('my first line');
  Chart1.Title.Text.Add('my second line');
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

Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Re: Title Add line

Post by Calou » Tue Sep 01, 2009 10:01 am

Thanks

I was using the property caption. With text it works

Regards

Post Reply