Page 1 of 1

Multi-Line Titles / Annotation PositionUnits

Posted: Thu Jan 18, 2007 8:15 am
by 9080944
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

Posted: Thu Jan 18, 2007 9:57 am
by narcis
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.