Page 1 of 1

Drag and Zoom mouse sequence

Posted: Tue Dec 12, 2006 2:57 pm
by 9642161
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

Posted: Tue Dec 12, 2006 3:07 pm
by narcis
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).