Page 1 of 1

Title Add line

Posted: Mon Aug 31, 2009 3:02 pm
by 10050873
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

Re: Title Add line

Posted: Mon Aug 31, 2009 4:09 pm
by yeray
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');

Re: Title Add line

Posted: Tue Sep 01, 2009 10:01 am
by 10050873
Thanks

I was using the property caption. With text it works

Regards