Is it possible to add a port to a gobasicNode object. If yes, how can i do this.
Kind regards, michi
Is it possible to add a port to a gobasicNode object. If yes, how can i do this.
Chapter 6 of the User Guide describes all of the built-in node classes and how they are intended to be used.
GoBasicNode, GoIconicNode, and GoBoxNode all are designed to have just one port. The actual points at which links connect to the port are dynamically computed.
Hallo i want to draw a rectangle, and add ports dynamical from code. I want to position this nodes on the border of the rectangle. How can i achieve this.
Look at GoGeneralNode then. This will give you any number of ports on the left and right sides (or top/bottom).
Just create them, initialize them to have the appearance you want including their Size, position them relative to the Shape where you want, and then Add them to the node.