how to set position relative to the x and y axis of a chart

TeeChart for ActiveX, COM and ASP
Post Reply
mosim
Newbie
Newbie
Posts: 3
Joined: Thu Dec 07, 2006 12:00 am

how to set position relative to the x and y axis of a chart

Post by mosim » Tue Mar 27, 2007 2:47 pm

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

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

Post by Narcís » Tue Mar 27, 2007 2:56 pm

Hi Werner,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply