Hello, as much as I’ve tried the above behaviour is exactly what I am
after but I am toiling on the implementation. My scenario is this :
using Go Win 2.4 beta
I wish to via a context menu allow a user to specify a links’
destination direction. I.e. the user has moved a node and the direction
is no longer appropriate - so a menu of (top, left, bottom, right).
I am using an overriden GoLabeledLink with orthogonal style linkage and the adjustingstyle of End.
I have implemented the menu and the eventhandlers which is fine. The
problem I have is how I dynamically adjust the links ‘to’ direction.
The odd thing is that if I create a blank overriden port class for my
node by overriding CreatePort all my inputs always go the left port
side. So overriding GetToLinkDir was not going anywhere - I took the
simplistic approach of adding a property ‘Direction’ to the port which
I assign in the eventhandler for the link menuitem then call
CalculateStroke. GetToLinkDir checks this value if set, to override the
In addition because GoLabelledLink contains a GoLink and hence doesnt
derive from it, consequently I cant stick an override in here for
GoLink and when I try adding my own overriden class and assigning it to
the RealLink property I still dont get expected behaviour.
Sorry if this is sounding a bit confused but I’ve been trying to get
this working and have tried a few approaches that I’m sure have
confused the issue.
My node is an overriden GoBasicNode, I tried GoTextNode but this will
probably confuse the clients as I would have to check that there can
only be one link between the same nodes and they will be moving nodes
around the place - so will definitely be wishing to have a smarter link.
Much appreciated if you can help.