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
Drag and Zoom mouse sequence
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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).
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 |
Instructions - How to post in this forum |