I am using the TeeChart.ocx from Visual C++ 6.0
and use a AnnotationTool on a chart.
how can I set the AnnotationTool position after a resize of the chart,
that the AnnotationTool is placed always at the same position relative to the x and y axis?
Best Regards
Werner Mosimann
how to set position relative to the x and y axis of a chart
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Werner,
You can use annotations like shown here but setting its position to axes coordinates, for example:
You can use annotations like shown here but setting its position to axes coordinates, for example:
Code: Select all
long X = m_Chart1.GetAxis().GetLeft().GetPosition();
long Y = m_Chart1.GetAxis().GetBottom().GetPosition();
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 |