GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / EnableMouseWheel Property
Example





In This Topic
EnableMouseWheel Property (GdViewer)
In This Topic
Specifies whether the GdViewer control will respond to the mouse wheel event. You can use the MouseWheelMode property to define how the mouse wheel event is handled.
Syntax
'Declaration
 
Public Property EnableMouseWheel As Boolean
public bool EnableMouseWheel {get; set;}
public read-write property EnableMouseWheel: Boolean; 
public function get,set EnableMouseWheel : boolean
public: __property bool get_EnableMouseWheel();
public: __property void set_EnableMouseWheel( 
   bool value
);
public:
property bool EnableMouseWheel {
   bool get();
   void set (    bool value);
}

Property Value

The default value is true.
Remarks
Be aware that this property should be enabled to benefit from the MouseWheelMode property.
Example
How to change some properties for controlling the mouse behaviour.
'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;
See Also