Multi-Line Titles / Annotation PositionUnits

TeeChart for ActiveX, COM and ASP
Post Reply
paligap
Newbie
Newbie
Posts: 19
Joined: Tue Feb 24, 2004 5:00 am
Location: Australia

Multi-Line Titles / Annotation PositionUnits

Post by paligap » Thu Jan 18, 2007 8:15 am

Two questions;

1. How can I programmatically create a multi-line chart title? It appears that using the standard "Line Feed" in VB (vbcrlf) does not work, it results in a square ASCII character instead of starting the next line of the title.

2. How can I set the PositionUnits of an annotation tool to percent through code? It appears that the annotation tool defaults to Pixels.

Thanks in advanced
A

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jan 18, 2007 9:57 am

Hi paligap,

Please find below the answers to your questions:

1. Here you'll find a message showing you how to achieve that.

2. I'm afraid this is not possible, custom position can only be set in pixels. However, you may calculate the pixels corresponding to a chart percent position using ChartRect's coordinates (see ITChart.ChartRect entry in the help file) or using TeeChart's Left, Top, Width and Height properties.
Best Regards,
Narcís Calvet / 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