Simple problem with GUI layout

Hi,

I am having a simple problem with laying out a GUI that I have reduced to a simple macro based on buttonsLayout.C

The macro has two composite frames, the first is vertical, the second is horizontal. Each frame contains a few buttons.

The first (vertical) frame looks fine, but the second is for some reason on top of, rather than below, the first frame. Can someone explain what I am doing wrong?

thanks!
Peter
simpleExample.C (2.29 KB)

I think you should change the parent of quitButton and goButton to buttonFrame2. That made your example work for me.

that was it - thanks!