CursorTool: snap to horizontal movements only?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
George
Newbie
Newbie
Posts: 1
Joined: Tue Jul 06, 2004 4:00 am

CursorTool: snap to horizontal movements only?

Post by George » Mon Sep 25, 2006 5:55 pm

Hello,

How can I make the cursor (cssHorizontal) to stay only with horizontal movements ?

I would like that my cursor follows the mouse and snaps to a series of my line chart (which it does), but it should not react on vertical movements of the mouse, just on horizontal movements.

Any Ideas?

George

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Tue Sep 26, 2006 6:22 am

Maybe you can try to check the X, Y position in the OnMouseMove event.

Something like : if Y <> oldY, then movementVertical.

Do you see what i mean ?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Sep 26, 2006 7:27 am

Hi George,

Have you tried using something like this?

Code: Select all

  With ChartTool1 do
  begin
    Style:=cssVertical;
    Snap:=true;
    FollowMouse:=true;
    Series:=Series1;
  end;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply