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 »

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: 19159
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Wrap sizer contents at window edge?

Post by doublemax »

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 »

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 »

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