Hey All,
Looks like there''s a few bugs with the controls dealing with
Wx::Wizard. I''ve gone through it a bit, and seems like
there''s some
errors beyond what I could fix. An example is:
# wxWizard A wizard dialog
Wx::define_keyword_ctors(''Wizard'') do
wx_ctor_params :title => ''''
wx_ctor_params :bitmap => Wx::NULL_BITMAP
wx_ctor_params :pos, :size
wx_ctor_params :style => Wx::DEFAULT_DIALOG_STYLE
end
After looking at the SWIG Generated Code, it looks like it generates the
Director to only have the params:
:title => ''''
:bitmap => Wx::NULL_BITMAP
:pos
There is no :size or :style. But after modifying keyword_defs.rb, it
still errors out, with the following Error (Modified by myself):
>ruby wizard.rb
C:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.1-i386-mswin32/lib/wx/keyword_ctors.rb:202:in
`initialize'': (ArgumentError)
Original Error No matching function for overloaded
''new_wxWizard''
Error initializing #<Wx::Wizard:0x2ad4010>
Sent parameters: [#<MyFrame:0x2ad4754>, -1, "The WxRuby Wizard",
#<Wx::Point: (-1, -1)>]
Correct parameters are:
title (String)
bitmap (Wxruby2::Bitmap)
pos (Wxruby2::Point)
from wizard.rb:37:in `new''
from wizard.rb:37:in `initialize''
from wizard.rb:70:in `new''
from wizard.rb:70:in `on_init''
from wizard.rb:80:in `main_loop''
from wizard.rb:80
>Exit code: 1
From reading this, it looks as though :bitmap is not being loaded into
the mixed_args from the args_as_list method.
In another example, I''ve fixed this problem, cause I have logo
desginated, but it still errors out from another part of Wx::Wizard,
which is Wx::SimpleWizardPage.
>ruby RubyIM.rb
C:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.1-i386-mswin32/lib/wx/keyword_ctors.rb:202:in
`initialize'': (ArgumentError)
Original Error wrong # of arguments(5 for 0)
Error initializing #<Wx::WizardPageSimple:0x282e8ec>
Sent parameters: [#<SetupWizard:0x282f8b4>, -1, nil, nil,
#<Wx::Bitmap:0x2db1878>]
Correct parameters are:
id (Fixnum)
prev (NilClass)
next (NilClass)
bitmap (Wxruby2::Bitmap)
from ./libs/Wizard.rb:7:in `new''
from ./libs/Wizard.rb:7:in `initialize''
from RubyIM.rb:36:in `new''
from RubyIM.rb:36:in `on_init''
from RubyIM.rb:41:in `main_loop''
from RubyIM.rb:41
>Exit code: 1
Which by both Documentation, and by SWIG Source Code, shows that there
is no ID Associated with this control type. Seems a bit funky, if you
ask me.
Thought I would pass this along to you guys,
Mario Steele