Drag and Zoom mouse sequence

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
histry
Newbie
Newbie
Posts: 79
Joined: Thu Aug 10, 2006 12:00 am

Drag and Zoom mouse sequence

Post by histry » Tue Dec 12, 2006 2:57 pm

I have a case where I want to drag the chart to a tree control. The problem I have is the drag and zoom are conflicting. Is there a quick way to see if the mousemove is withing the plotting area so that I can displable the drag and only allow a drag when outside the plotting area.

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 Dec 12, 2006 3:07 pm

Hi histry,

Yes, you can use TeeChart's MouseMove event and check if the event's e.X and e.Y parameters are inside TeeChart's ChartRect (tChart1.Chart.ChartRect.Left, tChart1.Chart.ChartRect.Top, tChart1.Chart.ChartRect.Right and tChart1.Chart.ChartRect.Bottom).
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