Profile Picture

mouse wheel zoom

Posted By Stuart Jones 6 Years Ago
Author
Message
Stuart Jones
Posted 6 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 17, Visits: 338
Hi,

This worked thanks. 

Nevron Support
Posted 6 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 14 hours ago
Posts: 3,054, Visits: 4,009
Hi Stuart,
You need to change the BeginDragMouseCommand to:
= new NMouseCommand(MouseAction.Wheel, MouseButton.None, 0);
We tested with:
NDataZoomTool dataZoomTool = new NDataZoomTool();
dataZoomTool.WheelZoomAtMouse = true;
dataZoomTool.WheelZoomFactor = 0.2;
dataZoomTool.BeginDragMouseCommand = new NMouseCommand(MouseAction.Wheel, MouseButton.None, 0);
dataZoomTool.EndDragMouseCommand = new NMouseCommand(MouseAction.None, MouseButton.None, 0);
nChartControl1.Controller.Tools.Add(dataZoomTool);
and the control was working properly. The change probably occurred when we implemented modifier keys to the mouse commands. Let us know if you meet any problems.

Best Regards,
Nevron Support Team



Stuart Jones
Problem Posted 6 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 17, Visits: 338
Hi,

Following an upgrade 18.7.18.12 to 18.8.17.1 mouse wheel zoom has stopped working.

This is how we create the NDataZoomTool:

    var dataZoomTool = new NDataZoomTool();
    dataZoomTool.WheelZoomAtMouse = true;
    dataZoomTool.WheelZoomFactor = 0.2;
    dataZoomTool.BeginDragMouseCommand = new NMouseCommand(MouseAction.Wheel, MouseButton.Middle, 0);
    dataZoomTool.EndDragMouseCommand = new NMouseCommand(MouseAction.None, MouseButton.None, 0);
    addToolToNevronControl(dataZoomTool);




Similar Topics


Reading This Topic