GoDiagram Web Reference
DoMove Method

the GoView whose MoveSelection or CopySelection or similar method is calling this method
the original Location
the new Location
Called when a user moves this object.
Syntax
'Declaration
 
Public Overridable Sub DoMove( _
   ByVal view As GoView, _
   ByVal origLoc As PointF, _
   ByVal newLoc As PointF _
) 
public virtual void DoMove( 
   GoView view,
   PointF origLoc,
   PointF newLoc
)

Parameters

view
the GoView whose MoveSelection or CopySelection or similar method is calling this method
origLoc
the original Location
newLoc
the new Location
Remarks
This is normally called from GoView methods MoveSelection, and CopySelection. By default it just sets this object's Location property to the result of a call to ComputeMove: Location = ComputeMove(origLoc, newLoc) However, you can override this method or ComputeMove to constrain the places that this object can be moved to by the user. You will still be able to move this object programmatically by setting the Location or Position property directly. If you want to constrain this object's movement both interactively and programmatically, you should override the Bounds property. Override ComputeMove if you want to constrain the user's movement of this object without regard to the actual view or input events causing the move.
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

GoObject Class
GoObject Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback