From: Lyle J. <ljo...@re...> - 2001-11-27 17:33:15
|
The latest release of FXRuby, the Ruby language bindings for FOX, are now available for download from the FXRuby home page: http://fxruby.sf.net A complete list of changes is available at the home page, but the most significant is a revamped approach to assigning message handlers for widgets. Instead of the tedious process of generating new message identifiers, setting up a message map, etc. you can now simply attach a code block to a widget, e.g. aButton = FXButton.new(parent, "Push Me!") aButton.connect(SEL_COMMAND) { |sender, sel, ptr| puts "Color me pushed" } This approach is much more compact and Ruby-ish, especially for quick little button-press handlers and the like. This system is built on top of the old one and so it's completely back-compatible when you need the added flexibility of the old approach. For more information, see the FXRuby user's guide. Enjoy! Lyle --- J. Lyle Johnson Principal Software Engineer Bioinformatics Department ResGen, Invitrogen Corporation 2130 S. Memorial Parkway Huntsville, Alabama 35801 (800) 533-4363 x74430 |