TCursorTool: Bad performace manualy set coordinates

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Andy
Newbie
Newbie
Posts: 32
Joined: Wed Apr 18, 2007 12:00 am
Location: Germany Oldenburg
Contact:

TCursorTool: Bad performace manualy set coordinates

Post by Andy » 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

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Fri Mar 13, 2009 9:40 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply