Page 1 of 1

CursorTool sometimes goes beyond chart area

Posted: Tue Nov 06, 2007 6:52 am
by 9643500
Hi TeeChart Team,

My application is using the CursorTool. The cursor has FollowMouse set to true. When i move the mouse around, it follows mouse correctly and stays within the chart area defined by the 2 axes. However, while the cursor tool is still FollowMouse, if I dragthe mouse downwards-rightwards (to have a zooming effect), sometimes the cursor tool goes out of the chart area.

I don't know if anybody has reported this. But it's quite difficult to reproduce (I only have a screenshot) which shows the cursor tool having its horizontal segment lying over the top axis, and its vertical segment lying still inside of the charting area.

If you have any clues of this behavior, please let me know.

Thank you.
Huy

Posted: Tue Nov 06, 2007 8:54 am
by narcis
Hi Huy,

It's very difficult for us making any suggestion without being able to reproduce the problem here. Could you please send us a simple example project we can run "as-is" or let us know the exact steps we should follow to reproduce the problem here? Could you also let us know the exact TeeChart version you are using?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance!

Posted: Wed Nov 07, 2007 2:43 am
by 9643500
I will try to find time to make a sample. If I am ready I will come back to you.

Thank you.

Posted: Fri Nov 09, 2007 3:16 am
by 9643500
Finally I have figured out how to reproduce that artifact.
Start with your demo program "Welcome !\Tools\Cursor\Moving programatically".

Use the right mouse button to drag the chart very slowly rightwards-upwards until the horizontal segment of the cursor tool goes out of the top axis of the graph. That is, the cursor tool has just overshot the charting area.

The screenshot of the overshooting problem will be uploaded to the client's upload area with the filename being "CursorTool overshoots.JPG"

Posted: Mon Nov 12, 2007 9:14 am
by narcis
Hi huy,

Thanks for the image. In that case you can do something as what I suggested here.

Posted: Mon Nov 12, 2007 9:31 am
by 9643500
Thanks a lot for the quick reply. I think it solves my problem too.