Profile Picture

How to change standard port shape ?

Posted By michal bandrowski 15 Years Ago
Author
Message
michal bandrowski
questionmark Posted 15 Years Ago
View Quick Profile
Junior Member

Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)

Group: Forum Members
Last Active: 15 Years Ago
Posts: 10, Visits: 1
Hi,

How can I change standard port shape ?

e.g.
--
I'm adding port to group (NGroup)

group.CreateShapeElements(ShapeElementsMask.Ports);
NDynamicPort port = new NDynamicPort(group.UniqueId,
ContentAlignment.MiddleLeft,
DynamicPortGlueMode.GlueToContour);
port.DirectionMode = BoundsPortDirectionMode.AutoSide;
group.Ports.AddChild(port);

then I use NCreateConnectorTool to connect some shape with group.
When mouse cursor is close enough to port, 'port tip' is being shown, but always with the same red square shape (take a look at the attached screenshot - inside blue circle).

I would like to change this 'port tip' to something else, for example change its colors and bounds.
If not, could you please give me a clue, how to made NCreateConnectorTool to recognize whole group (NGroup) area as possible line drop zone, so it will be attached to port ?

Thanks in advance,
Michal

Attachments
ex.PNG (144 views, 52.00 KB)



Similar Topics


Reading This Topic