Thank you very much for taking the time to look into this!
I''ll give nested sizers a try.
On 2/19/06, Alex Fenton <alex at pressure.to>
wrote:> Mark Volkmann wrote:
> > I see that GridBagSizer is not yet supported by wxRuby. Is there an
> > alternative to specifying that a widget spans more than one column? I
> > don''t see a way to do that in FlexGridSizer.
> >
> I saw your post on c.l.r. and had a go at porting GridBagSizer. It
> hasn''t worked out, yet. But you can usually achieve similar
results by
> nesting sizers within one another to create spanning grid cells. As an
> eg the child window at:
>
> http://www.pressure.to/qda/doc/images/code_document.png
>
> Wx::Sizer#add accepts another sizer as well as a widget/window as an
> argument
>
> http://www.wxwidgets.org/manuals/2.6.2/wx_wxsizer.html#wxsizeradd
>
> So you can have, for example, a vertical BoxSizer spanning multiple
> ''columns'' as the main sizer, then create
''columns'' in the ''rows'' by
> organising the widgets using a horizontal BoxSizer. Apply the
> appropriate proportions and flags for the widgets and sub-sizers to
> expand and shrink when you #add them to the parent to create the
> appearance of cells.
>
> cheers
>
> alex
>
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users
>
--
R. Mark Volkmann
Partner, Object Computing, Inc.