I am currently using Visual studios C++ component.
Could you please advise me on how to do the following with regards the tcCursor tool:
Set the position of the cursor dynamically from within the code.
Read the position of the cursor?
Regards
Jacques Bekker
Setting cursor positions / Obatining cursor positions?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Jacques,
Yes, you can set values like this:
And get them like this:
Yes, you can set values like this:
Code: Select all
m_Chart1.GetTools().GetItems(0).GetAsTeeCursor().SetXVal(xVal);
m_Chart1.GetTools().GetItems(0).GetAsTeeCursor().SetYVal(yVal);
Code: Select all
xVal = m_Chart1.GetTools().GetItems(0).GetAsTeeCursor().GetXVal();
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 |