Profile Picture

Zooming charts by middle mouse wheel doesn't work

Posted By Fan-Jiang Zeng 9 Years Ago
Author
Message
Fan-Jiang Zeng
Problem Posted 9 Years Ago
View Quick Profile
 
Group: Forum Members
Last Active: 8 Years Ago
Posts: 7, Visits: 17
I wanted to use NZoomTool to zoom a chart by scrolling the mouse middle wheel, this is the code snippet:

var zoomTool = new NZoomTool();
zoomTool.BeginDragMouseCommand = new NMouseCommand(MouseAction.Wheel, MouseButtons.Middle, 1);
nChartControl.Controller.Tools.Add(_zoomTool);

The result is that it doesn't work at all, the chart cannot be zoomed when I scrolled the middle mouse wheel. Can anyone know if I did something wrong? Thank you!




Similar Topics


Reading This Topic