Attached is a patch to wxSingleChoiceDialog.h. I replaced the constructor with one that used an array of strings and swig properly generates the interface now. I tried adding a header file for wxMultiChoiceSelection but it just does not work correctly. It always returns with 0 items selected. I will delve into this further tomorrow, perhaps. In any case, wxMultipleChoiceDialog.h should probably be deleted. The Swig class is called MultiChoiceDialog.h. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Roy Sutton wrote:> Attached is a patch to wxSingleChoiceDialog.h. I replaced the > constructor with one that used an array of strings and swig properly > generates the interface now.Cool. Committed.> I tried adding a header file for > wxMultiChoiceSelection but it just does not work correctly. It always > returns with 0 items selected. I will delve into this further tomorrow, > perhaps. In any case, wxMultipleChoiceDialog.h should probably be > deleted. The Swig class is called MultiChoiceDialog.h.On my system, the bigdemo multiple choice dialog sample works fine, and correctly reported the three items I had selected. Ah. That''s because it calls the global function Wx::get_multiple_choices instead of creating a dialog. I deleted the empty, misnamed, unused wxMultipleChoiceDialog.h, as you suggested. Thanks, Kevin
Reasonably Related Threads
- [852] trunk/wxruby2/swig/classes/include/parents.rb: Fix MultiChoiceDialog name
- [845] trunk/wxruby2/swig/classes: Added MultiChoiceDialog in class form
- [846] trunk/wxruby2/swig/classes/MultiChoiceDialog.i: Fixed - don''t use Ruby 1.9-style API calls cos this breaks older SWIGs
- 1.9.3 release, rakefile
- autoupdate broke