Cursor tool
Posted: Tue Jan 04, 2011 5:52 pm
I have just started developing my first app with TChart and am finding it a great product!! I do, however, have a couple of questions on the cursor tool:
1. I have a menu option to turn on and off the cursor (In my app this is just the vertical line). When the cursor is turned on, i want it to appear in the middle of my TChart, how do i do this.
2. When the TChart is scrolled (Panned) or zoomed, if the cursor is no longer on the currently displayed graph I want to be able to put it back in the middle of the chart again.
3. I want to be able to get the current X axis series index at the cursor position, so I can retreive the Y value of all my series at the cursor position. (They are all fast lines).
I am sure these are all fairly simple tasks, but I have not been able to find out how just yet.
Martin
1. I have a menu option to turn on and off the cursor (In my app this is just the vertical line). When the cursor is turned on, i want it to appear in the middle of my TChart, how do i do this.
2. When the TChart is scrolled (Panned) or zoomed, if the cursor is no longer on the currently displayed graph I want to be able to put it back in the middle of the chart again.
3. I want to be able to get the current X axis series index at the cursor position, so I can retreive the Y value of all my series at the cursor position. (They are all fast lines).
I am sure these are all fairly simple tasks, but I have not been able to find out how just yet.
Martin