Page 1 of 1

Stop TCursorTool from moving off the chart.

Posted: Mon Dec 13, 2004 9:47 am
by 9231947
Hi,
[Background Info]
At run time I create a TCursorTool object (I dont assign a series to it). I then place it at its relevant position... all works fine. Then when I zoom in and/or scroll, the cursor moves off the axis but is stilll visible on the chart.

[Problem]
1) Why does the cursor still draw itself once greater than the axis maximum or minimum values.
2) How could I correct this?

John.

Posted: Mon Dec 13, 2004 12:47 pm
by narcis
Hi John,

I've been able to reproduce this behaviour. It makes sense what you request and I have added it to our wish list for future releases.

Meanwhile you can implement it yourself using the OnScroll and OnZoom chart events. There you can get the cursor X and Y values and making them not visible or whatever you need to do when they are out of the axis range.