ChartArea.MouseWheel
event · ChartArea · cAlgo.API
DesktopCLICloud
Occurs when the mouse wheel button is rotated.
Environment behaviour
CLI — not supported. Never raised: no chart is displayed, so there is nothing to interact with.
Cloud — not supported. Never raised: no chart is displayed, so there is nothing to interact with.
Definition
event Action<ChartMouseWheelEventArgs> MouseWheel;
chartArea.MouseWheel += handler # handler(obj: ChartMouseWheelEventArgs)
Examples
protected override void OnStart()
{
Chart.MouseWheel += OnChartMouseWheel;
}
private void OnChartMouseWheel(ChartMouseWheelEventArgs args)
{
Print("Mouse wheel delta: {0}", args.Delta);
}
def on_start(self):
api.Chart.MouseWheel += self.on_chart_mouse_wheel
def on_chart_mouse_wheel(self, args):
api.Print(f"Mouse wheel delta: {args.Delta}")