GoDiagram Win Reference
DoResize Method (GoStroke)

the GoView whose GoToolResizing is calling this method
the original Bounds of the object, but probably not useful for strokes
the PointF, in document coordinates, to which the resize handle is being dragged
The IGoHandle.IGoHandle.HandleID of the handle being dragged; for strokes this usually means that a value greater or equal to GoObject.LastHandle is actually the index of a point in the stroke, when one subtracts GoObject.LastHandle.
the value of GoToolResizing.GoToolResizing.MinimumSize, but probably not useful for strokes
the value of GoToolResizing.GoToolResizing.MaximumSize, but probably not useful for strokes
When the resize handles are at each point of the stroke, the user's dragging of a resize handle should just change that point in the stroke.
Syntax
'Declaration
 
Public Overrides Sub DoResize( _
   ByVal view As GoView, _
   ByVal origRect As RectangleF, _
   ByVal newPoint As PointF, _
   ByVal whichHandle As Integer, _
   ByVal evttype As GoInputState, _
   ByVal min As SizeF, _
   ByVal max As SizeF _
) 
public override void DoResize( 
   GoView view,
   RectangleF origRect,
   PointF newPoint,
   int whichHandle,
   GoInputState evttype,
   SizeF min,
   SizeF max
)

Parameters

view
the GoView whose GoToolResizing is calling this method
origRect
the original Bounds of the object, but probably not useful for strokes
newPoint
the PointF, in document coordinates, to which the resize handle is being dragged
whichHandle
The IGoHandle.IGoHandle.HandleID of the handle being dragged; for strokes this usually means that a value greater or equal to GoObject.LastHandle is actually the index of a point in the stroke, when one subtracts GoObject.LastHandle.
evttype
min
the value of GoToolResizing.GoToolResizing.MinimumSize, but probably not useful for strokes
max
the value of GoToolResizing.GoToolResizing.MaximumSize, but probably not useful for strokes
Remarks
When ResizesRealtime is true, this method always calls SetPoint. Otherwise it only calls SetPoint when the evttype is GoInputState.Finish or GoInputState.Cancel.
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

GoStroke Class
GoStroke Members
Base Implementation in DoResize

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback