Profile Picture

Lock edges in place

Posted By Patrick Bergeron 13 Years Ago
Author
Message
Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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



Patrick Bergeron
Posted 13 Years Ago
View Quick Profile
Forum Newbie

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
Last Active: 13 Years Ago
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.





Similar Topics


Reading This Topic