From: "SHULTZ,BARRY (HP-Israel,ex1)" Date: 2001-05-16T23:53:09+09:00 Subject: [ruby-talk:15279] Re: Q: GUI framework with direct drawing ca pabilities? > functions on "list-like" classes. I'm open to other > suggestions about how to > make the FXRuby API more "Ruby-esque". > Someone earlier in this thread suggested something like: > p = Panel.new( > Button.new( "Hey, world!" ), ALIGN_LEFT, MORE_CONSTRAINTS, #... > Panel.new( > Slider.new( 0, 10, 5 ), SOME_CONSTRAINTS, #... > Checkbox.new( "Label" ), CONSTRAINTS, #... > ), > login_panel, CONSTRAINTS > ) and commented that: > I'm not sure this would work in Ruby, because the callbacks would have to fit > in there and would mess up the tree; I did, however, like the fact that GUIs > but with FXRuby, callbacks wouldn't have to affect the tree, since the links to callbacks are just one of the "MORE_CONSTRAINTS". How hard would it be to implement this style? Regards, Barry