NRoutableConnector within NGroup does not move in sync with NShapes when moving the parent NGroup


NRoutableConnector within NGroup does not move in sync with NShapes...
Author
Message
Paul Lagasca
Paul Lagasca
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 3, Visits: 200
Hi,

I have this implementation where I use NGroup to group NShapes and NRoutableConnectors.
However, when I try to move the NGroup, the NRoutableConnectors does not move in sync with the NShapes.

Any possible solution regarding this problem?
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
Hello Paul,

You need to "glue" the connector to the group.
You can glue the connector to several parts of a group/shape i.e. port or shape/group contour etc.

Here is small code example:
NGroup group = new NGroup();
NRoutableConnector routableConnector = new NRoutableConnector();
// glue to shape contour
routableConnector.GlueBeginToShape(group);
// or
routableConnector.GlueEndToShape(group);

// glue to port
routableConnector.GlueBeginToNearestPort(group);
// or
routableConnector.GlueEndToNearestPort(group);

Please, check NShape class in our documentation to find other options to glue a connector to a shape or group.

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
1 active, 1 guest, 0 members, 0 anonymous
No members currently viewing this topic!

Login

Explore
Messages
Mentions
Search