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
Multi-Line Titles / Annotation PositionUnits
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |