Dear sir/madam
I am currently using Visual Studio 2008 the C++ component under windows XP.
How do I obtain the x and y coordinates of a cursor on a graph?
Regards
Jacques Bekker
Obtaining the x and y coordinates of a cursor
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Jacques,
You can do this:
You can do this:
Code: Select all
double xval = m_Chart1.GetTools().GetItems(0).GetAsTeeCursor().GetXVal();
double yval = m_Chart1.GetTools().GetItems(0).GetAsTeeCursor().GetYVal();
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 |