It would be convenient to declare a groupbox and then identify the groupbox
as the parent control for other controls to facilitate positioning and
operations on the entire group (I think this would also be useful for
tabstrips, per the question the other day). The example below shows how
moving the groupbox also moves the child controls on resizing the main
window. However, I've noticed a couple of problems:

The first point isn't major, but I wonder if the second two aren't related
to it. Are these bugs, unimplemented features or do I misunderstand
something?

I must admit that I didn't know you could do this. I also noticed a problem when displaying your example when running with XP styles turned on, so something is not quite right.

To achieve a similar effect, I use child windows as "containers" for a group of controls. In your example, I would create a child window which has the group box and the other controls. Moving the child window would move all the controls.

Cheers,

jez.



Reply via email to