Wrap sizer contents at window edge?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Vexator
I live to help wx-kind
I live to help wx-kind
Posts: 187
Joined: Sun Jan 30, 2005 2:50 pm
Location: Heidelberg, Germany

Wrap sizer contents at window edge?

Post by Vexator » Sun Aug 21, 2011 12:15 pm

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!
Windows 7 Pro
Visual Studio 2010
wxWidgets 2.9.3

User avatar
doublemax
Moderator
Moderator
Posts: 14884
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Wrap sizer contents at window edge?

Post by doublemax » Sun Aug 21, 2011 12:43 pm

wxWrapSizer should work:
http://docs.wxwidgets.org/trunk/classwx_wrap_sizer.html

But only available in wx 2.9.x
Use the source, Luke!

Vexator
I live to help wx-kind
I live to help wx-kind
Posts: 187
Joined: Sun Jan 30, 2005 2:50 pm
Location: Heidelberg, Germany

Re: Wrap sizer contents at window edge?

Post by Vexator » Sun Aug 21, 2011 12:48 pm

Perfect, thank you! This should be added to the sizers overview.
Windows 7 Pro
Visual Studio 2010
wxWidgets 2.9.3

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: Wrap sizer contents at window edge?

Post by Auria » Sun Aug 21, 2011 2:57 pm

Vexator wrote:Perfect, thank you! This should be added to the sizers overview.
I guess a ticket should be opened about documentation bug
"Keyboard not detected. Press F1 to continue"
-- Windows

Post Reply