GoDiagram Web Reference
ComputeAutoPanDocPosition Method

The original panning point, in view coordinates.
The mouse point, in view coordinates.
This method is called to determine the next position in the document for this view, given a point at which the user is holding the mouse during a pan operation.
Syntax
'Declaration
 
Public Overridable Function ComputeAutoPanDocPosition( _
   ByVal originPnt As Point, _
   ByVal viewPnt As Point _
) As PointF
public virtual PointF ComputeAutoPanDocPosition( 
   Point originPnt,
   Point viewPnt
)

Parameters

originPnt
The original panning point, in view coordinates.
viewPnt
The mouse point, in view coordinates.
Remarks
This uses the ScrollSmallChange property to calculate a new DocPosition. When the current mouse point is within the AutoPanRegion width or height distance from the originPnt, no scrolling occurs. When the current mouse point is outside of this region, between the AutoPanRegion distance (width or height) and three times that distance, automatic scrolling proceeds at the smallest scrolling increment, ScrollSmallChange. The farther away the viewPnt is from the originPnt, the larger a multiple of the ScrollSmallChange is used as a scroll step in that direction.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoView Class
GoView Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback