Sets the current ImageViewerInteractiveMode for the specified MouseButton.
public virtual void SetMouseInteractiveMode(
Leadtools.Controls.LTMouseButton button,
Leadtools.Controls.ImageViewerInteractiveMode mode
)
Public Overridable Sub SetMouseInteractiveMode( _
ByVal button As Leadtools.Controls.LTMouseButton, _
ByVal mode As Leadtools.Controls.ImageViewerInteractiveMode _
)
macOS Only
- (void)setMouseInteractiveMode:(nullable LTImageViewerInteractiveMode *)interactiveMode forButton:(LTMouseButton)button
button
The mouse to associate with the interactive mode.
mode
The new interactive mode to use.
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:
ImageViewer.DefaultInteractiveMode: Assigns the interactive mode to the left mouse button on desktop browsers or default touch events on devices that support touch.
ImageViewer.TouchInteractiveMode: Assigns the interactive mode in devices that support touch.
ImageViewer.SetMouseInteractiveMode: Assigns the interactive mode to the specified mouse button on desktop browsers.
ImageViewer.MouseWheelInteractiveMode: Assigns the interactive mode to the mouse wheel on desktop browsers.
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.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET