ClassDiagramNode inherits from GoBoxNode, which has the Port behind the Body, so that mouse events will go only go to the Port when they are not intercepted by GoObjects in the Body.
Ah, Ok. That works. I should note that in order to get control of the text boxes again, I’ll have to call
Well, you don’t even have to do that if you have two modes – one allowing linking, and another that doesn’t allow linking.
Hmm, I tried setting GoView.AllowLink to false and it looks like the GoBoxPort is still preventing me from editing the text in the nodes.
Oh, well, if you want those GoText objects to respond to clicks, you’ll need to change the Port’s Z-order after all.