GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / DoAutoScroll Method
the current mouse point, in view coordinates
In This Topic
    DoAutoScroll Method
    In This Topic
    Start or continue automatically scrolling the view during a mouse drag.
    Syntax
    public virtual void DoAutoScroll( 
       Point viewPnt
    )

    Parameters

    viewPnt
    the current mouse point, in view coordinates
    Remarks

    As soon ComputeAutoScrollDocPosition returns a new DocPosition value, this method starts a Timer that waits for AutoScrollDelay milliseconds. After waiting, it repeatedly sets DocPosition to the latest ComputeAutoScrollDocPosition value, until the position does not change (presumably because the LastInput's view point is no longer in the autoscroll margin). Setting this view's DocPosition occurs each AutoScrollTime milliseconds.

    This method is normally called by those tools that want to support auto-scrolling during a mouse move, such as GoToolDragging.DoMouseMove or GoToolLinking.DoMouseMove. The timer is stopped when the mouse leaves this view.

    See Also