[wxruby-users] wxruby, XRC, DialogBlock
Alex Fenton
alex at pressure.to
Wed Mar 5 11:40:54 EST 2008
Joshua Lefkowitz wrote:
> I've been trying to figure out the best method for generating GUI's with
> Ruby. I ended up using DialogBlock because it seems like the fastest
> way. But not I have to work backwards and have not done this before.
> How do I go from the file I generate in DialogBlock to a code in Ruby?
>
The wxruby example samples/xrc/xrc_sample.rb shows how to load an
XRC-based layout into a wxRuby program.
To save time, I also recommend that you have a look at the tool
'xrcise'. This automatically creates ruby code to load XRC layouts and
link to specific controls within the XML file:
http://wxruby.rubyforge.org/wiki/wiki.pl?UsingXRCise
alex
More information about the wxruby-users
mailing list