Page 1 of 1

TCursorTool: Bad performace manualy set coordinates

Posted: Thu Mar 12, 2009 5:19 pm
by 9244864
Hello !

I use a cursor-tool to show the current mouse position.
But it works only in the inner chart frame.
Now, I want to show the cursor if I the mouse is out of it, too.
(eg. if the mouse is under the bottom axis, the vertical line
should follow the mouse.)

So I set the
Cursor.yValue = xAxis->CalcPosPoint(MouseXPos);
on every mouse-move-event and switched off FollowMouse

This works fine for less data charts, but if the chart has a lot of data
the line moving is very very slow.

So my question whats the different between
Follow mouse and set the x/y-values directly?

Best regards
Andreas Weichert

Posted: Fri Mar 13, 2009 9:40 am
by yeray
Hi Andreas,

The cursor tool uses the same CalcPosPoint methods that you tried, but I can't explain right now all the optimizations implemented to improve its performance.