Do you need the Flexibility of the FlexGridSizer? If not you may just want to try out simple GridSizers. I took your source and changed the two FlexGridSizers to GridSizers and it expands correctly.

If you need to use a FlexGridSizer, you'll have to call SetGrowableRow( index, proportion ) and SetGrowableCol( index, proportion ) for each one that you want to have grow along with the resize.

Brian Jones
----- Original Message ----- From: <sdn.wt...@mailnull.com>
To: <wxperl-users@perl.org>
Sent: Thursday, March 17, 2011 9:28 AM
Subject: Can't figure out sizers


I just can't figure out sizers.  Some days I think I never will.

Here: http://nopaste.info/223222a025.html is a very simple wxperl program. It displays a header line, then a cluster of controls, then a button at the bottom. I used two sizers: a top-level one with three rows and one column (for the three sections I just described), and one in the middle for the central cluster of controls.

Everything displays fine, but nothing happens when the window resizes. Nothing moves around. The button is supposed to be anchored to the bottom -- but it doesn't move when the window gets taller.

I keep juggling the options, trying various combinations of wxEXPAND and proportion flags, and I just cannot make anything happen when the window resizes.

What am I doing wrong?

----------
This message was sent from a MailNull anti-spam account.  You can get
your free account and take control over your email by visiting the
following URL.

http://mailnull.com/

Reply via email to