Page 1 of 1

Wrap sizer contents at window edge?

Posted: Sun Aug 21, 2011 12:15 pm
by Vexator
I've got a panel which contains a wxFlexGidSizer which in turn contains a varying number of wxStaticBoxSizers:
sizer_wrap.jpg
This panel can be resized in both directions. I'd like the contained wxStaticBoxSizers to be moved to a new row if the panel's size is too small to show them all. So if its width is reduced by half, the "Scaling" and "Rotation" sizers should be moved to a second row beneath, and the "Translation" sizer to a third row.

Is this possible? Thank you!

Re: Wrap sizer contents at window edge?

Posted: Sun Aug 21, 2011 12:43 pm
by doublemax
wxWrapSizer should work:
http://docs.wxwidgets.org/trunk/classwx_wrap_sizer.html

But only available in wx 2.9.x

Re: Wrap sizer contents at window edge?

Posted: Sun Aug 21, 2011 12:48 pm
by Vexator
Perfect, thank you! This should be added to the sizers overview.

Re: Wrap sizer contents at window edge?

Posted: Sun Aug 21, 2011 2:57 pm
by Auria
Vexator wrote:Perfect, thank you! This should be added to the sizers overview.
I guess a ticket should be opened about documentation bug