[Fxruby-users] Re: FXRuby Bug
Status: Inactive
Brought to you by:
lyle
From: <ly...@kn...> - 2003-06-19 15:21:01
|
On 19 Jun 2003 09:17:21 -0400, Bill Ramsay <Ra...@at...> wrote : > I think I've found a bug in FXRuby..... > > If you do this: > > @foo = FXCheckButton.new(p3, 'Foo', nil, 0) > @foo.setTextColor(FXColor::Blue) > > it will work. > > However if you do: > > @foo = FXCheckButton.new(p3, 'Foo', > nil,0).setTextColor(FXColor::Blue) > > @foo will be nil (but the color will be right) It's not a bug, but if you think it's something we should consider changing, I'm up for discussion. The effect of the second statement is that @foo gets assigned the result of the call to FXCheckButton#setTextColor, and that method currently returns nil. |