[fxruby-users] FXMenuBar.new(self) raises ArgumentError

Joel VanderWerf vjoel at path.berkeley.edu
Mon Mar 27 18:00:02 EST 2006

I've been away from FXRuby code for a while, and was surprised that

    mb = FXMenuBar.new(self)

which used to work (in 1.2 I guess) now in 1.4 causes this:

  No matching function for overloaded 'new_FXMenuBar' (ArgumentError)

It was easily fixed with:

    mb = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)

But it seems like FXMenuBar.new should have a default that works. Not a
big issue though...

      vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

More information about the fxruby-users mailing list