Zooming charts by middle mouse wheel doesn't work


Author
Message
Fan-Jiang Zeng
Fan-Jiang Zeng
 
Group: Forum Members
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!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search