Hi I''ve added a very basic introduction to using the BoxSizer class for layout in WxRuby to the wiki. Corrections, comments welcome. http://wxruby.rubyforge.org/wiki/wiki.pl?Using_Sizers_For_Layout alex
Alex, Excellent tutorial! The two contrasting examples did a good job of highlighting the utility of sizers. I really like the way you show the line of code before discussing it, I plan to adopt that into my future tutorials as well. Robert Carlin _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
alex fenton wrote:> I''ve added a very basic introduction to using the BoxSizer class for > layout in WxRuby to the wiki. Corrections, comments welcome. > > http://wxruby.rubyforge.org/wiki/wiki.pl?Using_Sizers_For_LayoutExcellent. I added a couple see-also links to the bottom. One of them is a pretty nice C++ sizer tutorial I stumbled upon a week or so ago: http://neume.sourceforge.net/sizerdemo/ One minor style point: In the code, the Frame constructor passes Wx::DEFAULT_POSITION and Wx::DEFAULT_SIZE, but those are the defaults, so the code would look simpler if they were omitted. Thanks, Kevin