Hey John, 2012/1/12 John D. Robertson <j...@rrci.com>: > Koen, > > In the following snippet I would think that the WGroupBox'es would be the same > height: > > WVBoxLayout *vbl= new WVBoxLayout; > root()->setLayout(vbl, AlignTop);
I was first thinking to tell you that this combination of actively aligning the height of each child in a layout manager whose height itself is not actively managed, is not supported. But then, that doesn't really help you (since there are no real alternatives). So I figured out that the reason why this doesn't work has no real meat to it. I'm changing Wt so that this can be done, but this kind of change (to layout managers) needs a lot of testing because it's a mine-field of subtleties. I'll push the change to git later today (hopefully) or some time next week. But if this causes unrepairable havoc, it'll get reverted and we need to go back to the drawing board. One thing to take into account is that you need to use a special value of -1 for widgets that do not have stretch (like stretch=0) but whose height needs to be actively size to fit their cell: WGroupBox *gb= new WGroupBox("box 1", root()); hbl->addWidget(gb, -1); Regards, koen ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest