noreply at rubyforge.org
2007-Jun-20 10:53 UTC
[Wxruby-development] [ wxruby-Bugs-11708 ] Wx::TreeCtrl#on_compare_items can not work
Bugs item #11708, was opened at 2007-06-20 06:53 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=11708&group_id=35 Category: Incorrect behavior Group: v0.4 Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Kevin Smith (qualitycode) Summary: Wx::TreeCtrl#on_compare_items can not work Initial Comment: require "wx" class MyTreeCtrl < Wx::TreeCtrl def initialize(parent) super parent, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::TR_DEFAULT_STYLE | Wx::TR_EDIT_LABELS end def on_compare_items(item1, item2) raise #no raise end end class MyFrame < Wx::Frame def initialize(title) super(nil, -1, title) @tree=MyTreeCtrl.new(self) @root = @tree.add_root("The Root Item") 0.upto(15) do |x| child= @tree.append_item(@root, "Item " + x.to_s()) @tree.sort_children(child) end @tree.sort_children(@root ) end end class MyApp < Wx::App def on_init $frame = MyFrame.new("Minimal wxRuby App") $frame.show return true end def on_fatal_exception puts("on_fatal_exception") end def on_exit puts("on_exit") return super end end a = MyApp.new a.main_loop() GC.start ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=11708&group_id=35
Maybe Matching Threads
- when can publish the next version?
- [ wxruby-Bugs-12360 ] TreeCtrl#on_compare_items not working on MSW
- [741] trunk/wxruby2: Fix get_item_data, hiding TreeItemData messiness, fix GC-ing (Alex Fenton)
- ReOrdering Wx::TreeCtrl Items
- [800] trunk/wxruby2/doc/textile/treectrl.txtl: TreeCtrl#traverse has moved to wx sugar