Move objects inside group (PowerPoint like)

Jake,
Here is my original session and I am sure that you gave me a big help.
http://www.nwoods.com/forum/forum_posts.asp?TID=3412&KW=powerpoint
In general the group is not visible unless it is selected (just like PowerPoint does).
Now I have the moving issue.
There are object A and B being grouped. Click A, the group is selected. Click A again, both the group and object A are selected. This is perfect. When I move A, both A and the group are moved since both are selected.
What I did was that removing the group from the selection collection when dragging is started and adding it back to the selection when dragging is stopped. In this way, only object A is moved and the group resized after the moving action. Unfortunately the group is not visible when the object A is moved.
What I really like is the same as PowerPoint. When the object A is moving, the group keeps selected or visible, and group is resizing realtime also. I am not sure which methods should be overriden and how.

Well, we hide selection when dragging / resizing is happening, so you’d need to add a separate object as the “border” of the GoGroup that you only make visible when you want it.



BoxArea in NodeLinkDemo might be a good place to look for an example (it derives from GoSubGraphBase, but I think the handling of the Border as a child of the GoGroup would be about the same).

Yes, that was what I did. Works now

It was my fault. I overrode the Visible property but forgot to cast to my derived class (or interface) when this propery is called.