Hi All,
What is the equivalent to Grid in Tk, for WxRuby? I see in the
documentation references to Sizers, but I cant quite figure out how to
use them, or if this is what I should be using.
Thanks
Jayson
Hi All,
What is the equivalent to Grid in Tk, for WxRuby? I see in the
documentation references to Sizers, but I cant quite figure out how to
use them, or if this is what I should be using.
Thanks
Jayson
Jayson W. wrote:
What is the equivalent to Grid in Tk, for WxRuby? I see in the
documentation references to Sizers, but I cant quite figure out how to
use them, or if this is what I should be using.
I don’t know what Grid does in Tk, but there are two possibilities:
There is Wx::Grid, which is a fancy spreadsheet-like widget for editing
cells
There are various flavours of Wx::Sizer, which are for creating layouts
which resize in response to Frames being resized. There’s a GridSizer
and FlexiGridSizer in there.
There are tutorials for both these on the Wiki:
http://wxruby.rubyforge.org/wiki/wiki.pl?WxRuby_Tutorial
And if you look in your wxruby “samples” directory (in your lib/gems
tree), there’s also samples of the use of both (look in samples/bigdemo/
for examples of Sizer use).
The wxruby-users list is a good place to get advice on this sort of q:
http://rubyforge.org/mail/?group_id=35
hth
alex
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs