From: Hywel T. <hy...@co...> - 2009-01-29 13:43:37
|
The PlotSurface needs to have the focus in order to receive MouseWheel events. If you change the OnMouseMove (in Windows.PlotSurface2D) to:- protected override void OnMouseMove(MouseEventArgs e) { this.Focus(); // Set Focus to receive MouseWheel events DoMouseMove( e, this ); base.OnMouseMove( e ); } then you will see the ABC demo working as intended, with the plot getting Focus when the mouse is moved over it. -- Hywel Thomas FXHat - wrote: > Does anybody use the MouseWheelZoom interaction? Even when I try the demo > application - ABC plot example, I can not zoom in on the graph using my > mouse wheel. |