Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cannot hide link handles (Read 1363 times)
cneiltx
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jun 4th, 2010
Cannot hide link handles
Jun 4th, 2010 at 2:24pm
Print Post  
I am trying to produce a flow diagram where the nodes are selectable but the links are not. No user interaction is to be allowed in the diagram except to select a single node at a time. The key properties I'm setting are as follows.

On the diagram:
[tt]
diagram.LinkEndsMovable = false;
diagram.LinkHandlesStyle = HandlesStyle.Invisible;
diagram.Selection.AllowMultipleSelection = false;
diagram.ShapeHandlesStyle = HandlesStyle.Invisible;
[/tt]

On each shape node:
[tt]
node.EnabledHandles = AdjustmentHandles.None;
[/tt]

I looked for an equivalent EnabledHandles properties for links but do not see one.

Note that I am applying a layered layout to the diagram after adding the nodes and links. I have even tried iterating through the diagram links after the layout and setting each link's HandlesStyle = Invisible but no luck.

The nodes are behaving as desired (i.e. no handles displaying) but the links display handles at the endpoints and turns when selected. Please let me know how I can prevent the handles from displaying on the links. This seems like a bug since I have set the link handle style to invisible.
  
Back to top
 
IP Logged
 
cneiltx
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jun 4th, 2010
Re: Cannot hide link handles
Reply #1 - Jun 4th, 2010 at 2:46pm
Print Post  
I just found the link's Locked property.  Setting it to true seems to do the trick.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint