GoDiagram Web Reference
AddSelectionHandles Method (GoLink)

Unlike a normal GoStroke the end handles are in the shape of diamonds if Relinkable is true.
Syntax
'Declaration
 
Public Overrides Sub AddSelectionHandles( _
   ByVal sel As GoSelection, _
   ByVal selectedObj As GoObject _
) 
public override void AddSelectionHandles( 
   GoSelection sel,
   GoObject selectedObj
)

Parameters

sel
selectedObj
Remarks

The first and last resize handles depend on whether this link is Relinkable. If it is, the handles have a GoHandleStyle.Diamond style with a HandleID that is either RelinkableFromHandle or RelinkableToHandle. If it is not, the handles are hollow and have a handle ID of GoObject.NoHandle, and the user cannot drag them.

The second and next-to-last resize handles, if they exist apart from first and last resize handles and if this link is Orthogonal, will have special HandleIDs to constrain the movement of those handles in order to maintain orthogonality. These special handles are GoObject.MiddleTop, GoObject.MiddleRight, GoObject.MiddleBottom, and GoObject.MiddleLeft.

The HandleID for the rest of the resize handles, if they exist in the middle parts of the link, is just the corresponding point index plus GoObject.LastHandle. These allow for unconstrained movement while resizing, even if the link is Orthogonal.

Furthermore, if Orthogonal and DraggableOrthogonalSegments are both true, this adds additional hidden handles (Style is GoHandleStyle.None) along the middle segments to allow those segments to be dragged in a direction perpendicular to the segment. These handles have a HandleID equal to the index of the point beginning the segment plus GoObject.LastHandle plus 1000000.

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

GoLink Class
GoLink Members
Base Implementation in AddSelectionHandles

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback