'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.MouseMode = ViewerMouseMode.MouseModeAreaZooming
GdViewer1.MouseButtonForMouseMode = MouseButton.MouseButtonRight
GdViewer1.EnableMouseWheel = True
GdViewer1.MouseWheelMode = ViewerMouseWheelMode.MouseWheelModeZoom
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.MouseMode = ViewerMouseMode.MouseModeAreaZooming;
GdViewer1.MouseButtonForMouseMode = MouseButton.MouseButtonRight;
GdViewer1.EnableMouseWheel = true;
GdViewer1.MouseWheelMode = ViewerMouseWheelMode.MouseWheelModeZoom;