How to change standard port shape ?


Author
Message
michal bandrowski
michal bandrowski
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
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 (162 views, 52.00 KB)
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