> 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