noreply at rubyforge.org
2010-Mar-16 16:51 UTC
[wxruby-development] [ wxruby-Bugs-27976 ] Wx::ControlWithItems.select behavior is diferent than the documentation
Bugs item #27976, was opened at 2010-03-16 11:51 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=27976&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Sean DeNigris (lotusone) Assigned to: Nobody (None) Summary: Wx::ControlWithItems.select behavior is diferent than the documentation Initial Comment: Doc (http://wxruby.rubyforge.org/doc/controlwithitems.html#ControlWithItems_select):>ControlWithItems#select> select(Integer n) >This is the same as set_selection and exists only because it is slightly more natural for controls >which support multiple selection.Code:> c = Wx::Choice.new self, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, (''1''..''5'').to_a > c.select 2Output:> in `select'': Swig director pure virtual method called wxControlWithItems::Select (RuntimeError)VS. Code:> c = Wx::Choice.new self, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, (''1''..''5'').to_a > c.set_selection 2Output: value is set with no errors - Sean ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=27976&group_id=35
Apparently Analagous Threads
- [766] trunk/wxruby2: Added item_data aliases for client_data functions, update doc & tests;
- [744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
- [1141] trunk/wxruby2/swig/mark_free_impl.i: ControlWithItems call default Window mark routine to preserve ToolTips etc
- [1133] trunk/wxruby2/swig/shared/control_with_items.i: Move mark func for ControlWithItems into shared file so changes affect
- [966] branches/wxruby2/wxwidgets_282/doc/textile/listbox.txtl: Fix methods which don''t need a ''n'' item for arrays in Ruby