Lock edges in place


Author
Message
Patrick Bergeron
Patrick Bergeron
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)
Group: Forum Members
Posts: 7, Visits: 1

We would like for our users to be able to drag the shapes around using the mouse; however, we do not want to give them the ability to manipulate the edges between the shapes.  What is the easiest way to lock edges in place?  In other words, if I have 3 shapes: A, B, and C that are connected as follows:

A - B - C

The user should not be allowed to "disconnect" the edge from A to B and then move that edge to create a new edge from A to C:

A - C - B

Hope this makes sense.


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi,

In order to forbid the user disconnect a connector you should apply the following protections to it:

 

NAbilities protection = connector.Protection;

protection.ChangeStartPoint = true;

protection.ChangeEndPoint = true;

protection.MoveX = true;

protection.MoveY = true;

connector.Protection = protection;



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search