DocuVieware Reference Guide
SetMouseMode
Reference Guides > JavaScript API > Actions > Operations > SetMouseMode
 SetMouseMode

This function allows you to set the mouse mode.

SetMouseMode: function (docuViewareID, mouseMode)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance.
mouseMode
The mouse mode you want to set.
Possible values are:

Value Mode
0 Pan
3 Area Selection
4 Marquee Zoom

Return Value

1 if error, 0 if success.