CODController::SetDragScrolling
voidCODController::SetDragScrolling(const intnMargin, const intnIncrement= 10, const UINTnTimerElapse= 100, const UINTnTimerID= 1001)
Enables or disables drag scrolling and initializes drag scroll parameters.
Defined in: OdController.cpp
Return Value
void
Parameters
nMargin
Margin for drag scrolling in device units.
Comments
Drag scrolling (or autoscrolling) occurs when the user is holding down the left mouse button and moves into the drag scroll margin. A timer is started when the user enters the drag scroll margin. When the timer fires, the viewport is scrolled by the given increment in a direction determined by which margin (top, left, right, bottom) the cursor is currently in. The timer is stopped when the user releases the mouse button. The margin value is specified in device units (i.e. pixels). Setting the margin to less than or equal to 0 disables drag scrolling.nIncrement
Number of logical to units to scroll when drag scrolling.
nTimerElapse
Time-out value for drag scroll timer.
nTimerID
Event ID for drag scroll timer.