Search found 3 matches

by Samfox2
Wed Feb 25, 2015 9:09 am
Forum: C++ Development
Topic: Resize Panel after hiding wxStaticBoxSizer
Replies: 5
Views: 1406

Re: Resize Panel after hiding wxStaticBoxSizer

Code: Select all

sizer->Fit(panel)
solved the problem, thx!
by Samfox2
Tue Feb 24, 2015 7:01 pm
Forum: C++ Development
Topic: Resize Panel after hiding wxStaticBoxSizer
Replies: 5
Views: 1406

Re: Resize Panel after hiding wxStaticBoxSizer

Thanks for your quick answers. I will try that, just to make it a bit clearer: The 2 StaticBoxSizers (vertical) which both hold different Controls are in a BoxSizer (vertical) which is attached to a Panel. I mostly need (context sensitive) just one of the StaticBoxSizers at a time, but in one case I...
by Samfox2
Tue Feb 24, 2015 3:21 pm
Forum: C++ Development
Topic: Resize Panel after hiding wxStaticBoxSizer
Replies: 5
Views: 1406

Resize Panel after hiding wxStaticBoxSizer

I have a few panels that constist of 2 wxStaticBoxSizers with different content inside. I dynamically hide one of these wxStaticBoxSizers depending on a wxChoice. A do a panel->Layout() to reduce the size of the panel (as it has to shrink/expand after hinding one of the wxStaticBoxSizers). This work...