Page 1 of 1

Disable zooming and panning

Posted: Thu Apr 30, 2015 8:31 am
by jrvdboom
Is there a simple way to disable all zooming and panning by the user, while keeping other mouse interactions (highlights, moving cursors, adjusting bands, etc.) enabled?

Thanks,
Joost

Re: Disable zooming and panning

Posted: Thu Apr 30, 2015 12:36 pm
by ArctionPasi
Yes.

Set

chart.ViewXY.ZoomPanOptions.LeftMouseButtonAction = MouseButtonAction.None;
chart.ViewXY.ZoomPanOptions.RightMouseButtonAction = MouseButtonAction.None;
chart.ViewXY.ZoomPanOptions.MouseWheelZooming = MouseWheelZooming.Off;

Re: Disable zooming and panning

Posted: Thu Apr 30, 2015 12:47 pm
by jrvdboom
Okay. But now I can still pan and zoom by dragging the axes/scale nibs. Of course I can disable these a well, but I was looking for a simpler solution...