Currently, I have an icon that is the child of a GoGroup which is turned on/off by the user. When the parent node is moved, I want the child icon to remain in the same spot.
I’ve currently overridden DoMove in GoNode to subtract the offset of the move and reposition the child node appropriately. Unfortunately, when I programmatically move the child node back to where it was, I think I’m triggering another DoMove event. The resulting behaviour is that the node I am moving runs away off the screen (but the child node dutifully remains in place).
I’d prefer to use the GoGroup concept because the selection and interrogation behaviour is automatically and correctly deferring to the parent node. However, it’s unusable as is.
Is there a way to keep DoMove from recursing onto itself? Or do I have to create a separate GoNode and handle the selection behaviour manually?