[fxruby-users] Re: FOX Issue

lyle at knology.net lyle at knology.net
Tue Jul 26 17:16:02 EDT 2005


On Tue, 26 Jul 2005 15:32:41 -0400, Bill Atkins <batkins57 at gmail.com> wrote :

> With fxruby gem 1.2.6 and ruby 1.8.2 Windows, running this code:
> 
> --
> 
> require_gem 'fxruby'
> include Fox
> 
> app = FXApp.new
> win = FXMainWindow.new app, "Test"
> 
> FXTreeList.new win, 0
> 
> app.create
> app.run
> 
> --
> 
> produces
> 
> C:\development\simulation>ruby bug_report.rb
> bug_report.rb:7:in `initialize': wrong argument type Fixnum (expected Data) 
> (Typ
> eError)
> from bug_report.rb:7:in `new'
> from bug_report.rb:7
> 
> Why does this happen? The second argument should be an integer representing 
> the number of visible items. In the example code on
> fxruby.org<http://fxruby.org>,
> FXTreeList.new is called with an integer for its second parameter.
> 
> Is this a bug or am I doing something wrong?

The documentation is wrong; the "nvis" argument (which used to be the second
argument) is no longer there. I've just added a bug report about this.


More information about the fxruby-users mailing list