how to change line (line feed) in annotation

TeeChart for ActiveX, COM and ASP
Post Reply
jason
Newbie
Newbie
Posts: 9
Joined: Mon Jun 21, 2004 4:00 am
Location: iit

how to change line (line feed) in annotation

Post by jason » Thu Jul 15, 2004 7:35 am

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.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jul 15, 2004 8:08 am

Hi Jason,

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

jason
Newbie
Newbie
Posts: 9
Joined: Mon Jun 21, 2004 4:00 am
Location: iit

Post by jason » Thu Jul 15, 2004 8:50 am

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

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jul 15, 2004 10:20 am

Hi Jason,

how about using :

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

jason
Newbie
Newbie
Posts: 9
Joined: Mon Jun 21, 2004 4:00 am
Location: iit

Post by jason » Thu Jul 15, 2004 11:04 am

Hi Josep,
Great. It works now.
Thanks a lot.

Jason

Post Reply