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





In This Topic
MouseButtonForMouseMode Property (GdViewer)
In This Topic
Gets or sets the mouse button used for the current mouse mode configuration in the GdViewer control.
Syntax
'Declaration
 
Public Property MouseButtonForMouseMode As MouseButton
public MouseButton MouseButtonForMouseMode {get; set;}
public read-write property MouseButtonForMouseMode: MouseButton; 
public function get,set MouseButtonForMouseMode : MouseButton
public: __property MouseButton get_MouseButtonForMouseMode();
public: __property void set_MouseButtonForMouseMode( 
   MouseButton value
);
public:
property MouseButton MouseButtonForMouseMode {
   MouseButton get();
   void set (    MouseButton value);
}

Property Value

The default value is MouseButton.MouseButtonLeft.
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