TCursorTool: Bad performace manualy set coordinates
Posted: Thu Mar 12, 2009 5:19 pm
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
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