Page 1 of 1

how to change line (line feed) in annotation

Posted: Thu Jul 15, 2004 7:35 am
by 9082924
The text of annotation can be in different lines when I edit it in editing tools.
Is it possible to get the same result when I set a text in programs ? Insert a line feed code ? If yes, what's the line feed code TeeChart can recognize?

Thanks.

Posted: Thu Jul 15, 2004 8:08 am
by Pep
Hi Jason,

you can do :
TChart1.Tools.Items(0).asAnnotation.Text = "Hello" + Chr(13) + "World"

Posted: Thu Jul 15, 2004 8:50 am
by 9082924
Hi Josep,
Thanks for your help. But it doesn't work yet.
I think I forgot to let you know that I was doing it in java script instead of vb or asp. Chr(13) isn't recognized in java script.
Anything else I can do ?
Thanks.

Jason

Posted: Thu Jul 15, 2004 10:20 am
by Pep
Hi Jason,

how about using :

TChart1.Tools.Items(0).asAnnotation.Text = "Hello \r"+ "World";

Posted: Thu Jul 15, 2004 11:04 am
by 9082924
Hi Josep,
Great. It works now.
Thanks a lot.

Jason