(Leadtools.Controls)

SetMouseInteractiveMode Method

Show in webframe





The mouse to associate with the interactive mode.
The new interactive mode to use.
Sets the current ImageViewerInteractiveMode for the specified MouseButton.
Syntax
public virtual void SetMouseInteractiveMode( 
   LTMouseButton button,
   ImageViewerInteractiveMode mode
)
Public Overridable Sub SetMouseInteractiveMode( _
   ByVal button As LTMouseButton, _
   ByVal mode As ImageViewerInteractiveMode _
) 
public virtual void SetMouseInteractiveMode( 
   LTMouseButton button,
   ImageViewerInteractiveMode mode
)
OS X Only
-(LTImageViewerInteractiveMode*) getMouseInteractiveModeForButton:(LTMouseButton) mouseButton;
            

            
 function Leadtools.Controls.ImageViewer.SetMouseInteractiveMode( 
   button ,
   mode 
)

Parameters

button
The mouse to associate with the interactive mode.
mode
The new interactive mode to use.
Remarks

To use an interactive mode, create an instance of any of the derived classes and assign it to the viewer using one of the following methods:

On desktop browsers, multiple interactive modes can be used at the same time. For example, you can use the following code to support panning/zooming with the left mouse button and magnify glass with the right button:


            viewer.setMouseInteractiveMode(Leadtools.Controls.MouseButton.left, new Leadtools.Controls.ImageViewerPanZoomInteractiveMode());
            viewer.setMouseInteractiveMode(Leadtools.Controls.MouseButton.right, new Leadtools.Controls.ImageViewerMagnifyGlassInteractiveMode());
            

On browsers that support only touch, such as mobile phones and tablets, only one interactive mode can be used at a time. This does not mean only one finger touch is supported, some of the interactive modes such as ImageViewerPanZoomInteractiveMode supports multiple touch operations such as pinch to zoom.

Requirements

Target Platforms

See Also

Reference

ImageViewer Class
ImageViewer Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.