Description

Enables the viewer's automatic mouse pan/scroll and mousewheel zoom.

Property type

A mcAutoScrollMethods enumeration.  

Syntax

object.AutoScrollMethod [= value]

The AutoScrollMethod Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McView.
valueA mcAutoScrollMethods enumeration, as described in settings.

Settings

The settings for value are:

ConstantValueDescription
 mcasmNone0

no auto scrolling or auto zooming is done

 mcasmScrollWhenMouseDown1

auto scrolling occurs only when the left mouse button is down.

 mcasmScrollWhenMouseLingers2

auto scrolling occurs when the mouse lingers close to a border, whether the left mouse button is down or not.

 mcasmZoomWithMouseWheel4

or this bit in to enable zooming with the mouse wheel when the Ctrl key is pressed.

Remarks

The McView window can be auto panned or scrolled when the mouse gets near a border (this can be limited to only occur when the left mouse button is down), and the Magnification can be automatically zoomed in or out when the mousewheel is rotated. The AutoScrollMethod enables or disables these features.

By default, auto pan/scroll is enabled only when the left mouse button is down, and mousewheel zoom is enabled (i.e. both mcasmScrollWhenMouseDown and mcasmZoomWithMouseWheel bits are set).