@meilens wrote:
Hello,
I have following Problem to solve. I have a node which has two ports, one of the left and one on the right side. Now, when my model is in read-only mode, only links from These two specific ports are allowed.
In the linking tool, there is a method
FindLinkablePort()
which I can use. But it doesn't exist for the Re-linking tool. And I don't see how I can find out about the starting port there.I Tried to Workaround by putting my code in the
DoActivate
method which can provide me with the necessary Information. There, when I want to disallow the links, I callbase.DoCancel()
andbase.DoStop
. But I experience a problematic behaviour there, namely that the Cursor (Hand Cursor) which becomes active when the user starts to drag the link, stays active after the cancel and stop method.So am I doing sth. wrong with the cancellation of the started linking tool Action? Or even better, is there some way to Access the port Information I Need in the
CanStart
method?Any help is appreciated.
Marc
Posts: 2
Participants: 2