Mark Dootson wrote:

> If you decide you still need a Wx::FlexGridSizer, your missing bits
> are
>     $tsz->AddGrowableCol( $colnumber, $proportion );
> 

> for the columns you want to allow 'grow' in the horizontal
> direction,
> and
> 
>     $tsz->AddGrowableRow( $rownumber, $proportion );
> 
> for the rows you want to allow 'grow' in the vertical direction


Aha, that's the part I was missing!  I assumed they would grow based
on the 'proportion' parameter to Wx::Sizer::Add().


> My personal practice for a layout like this is generally to use a
> simple Wx::BoxSizer as the main sizer for the window or panel, then
> for a case like yours I'd add a Wx::FlexGridSizer to it for my
> general items plus a horizontal Wx::BoxSizer last to hold buttons.

I can understand that, but I was under the impression that the rows in
a BoxSizer had to all be the same size.  Is that not true?


Thank you very much for your help.  I at least have a working program
now.


----------
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