CursorTool SnapToPoint and nearestPoint

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
matthbri
Newbie
Newbie
Posts: 43
Joined: Wed Mar 22, 2006 12:00 am

CursorTool SnapToPoint and nearestPoint

Post by matthbri » Mon Jul 10, 2006 10:37 pm

Hi,

is there any way to control which direction snaptopoint or nearestpoint will favour? Current it finds the nearest point on either side of the cursor. Is there any way to force it to find the nearest point to one side of the cursor only?

thanks,

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 Jul 11, 2006 8:15 am

Hi matthbri,

Cursor's SnapToPoint looks for the first point series crossing it from the beginning of the series. So will prevail points on the left of the cursor. NearesPoint tool looks for the point with the minimum distance to the mouse cursor.

I'm afraid what you request is not implemented. However, you may achieve that implementing your own tool inherited from existing ones and overriding some of its methods.
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

matthbri
Newbie
Newbie
Posts: 43
Joined: Wed Mar 22, 2006 12:00 am

Post by matthbri » Tue Jul 11, 2006 3:34 pm

ok, thanks

Post Reply