[wxruby-users] Lack of proper expansion using FlexGridSizer

Alex Fenton alex at pressure.to
Tue Sep 2 14:59:34 EDT 2008


Doug Glidden wrote:
> I experienced a problem similar to this using GridBagSizer earlier today
> (http://www.ruby-forum.com/topic/164539#new).  The problem was resolved
> at that point by using a BoxSizer instead of the GridBagSizer, but now
> I've run into the same problem with a FlexGridSizer.  In the top half of
> the attached image, I use a  series of horizontal BoxSizers, each with a
> StaticText (proportion = 0) and a TextCtrl (proportion = 1).  This fills
> up the space nicely, but I want the left sides of the TextCtrls to line
> up. 
>   
...
> Any suggestions? 

FlexGridSizer is the right type of sizer for that sort of layout.

Maybe look at FlexGridSizer#add_growable_col ?

http://wxruby.rubyforge.org/doc/flexgridsizer.html#FlexGridSizer_addgrowablecol

alex




More information about the wxruby-users mailing list