noreply at rubyforge.org
2007-Jul-18 08:24 UTC
[Wxruby-development] [ wxruby-Bugs-12360 ] TreeCtrl#on_compare_items not working on MSW
Bugs item #12360, was opened at 2007-07-18 08:24 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=12360&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: TreeCtrl#on_compare_items not working on MSW Initial Comment: If a TreeCtrl defines a custom on_compare_items method, this is not called when the tree is sorted on MSW. This works correctly on OS X and Linux. The following note in the wxWidgets headers may indicate the source of the problem: // NB: due to an ugly wxMSW hack you _must_ use DECLARE_DYNAMIC_CLASS() // if you want your overloaded OnCompareItems() to be called. // OTOH, if you don''t want it you may omit the next line - this will // make default (alphabetical) sorting much faster under wxMSW. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=12360&group_id=35
Seemingly Similar Threads
- [ wxruby-Bugs-11708 ] Wx::TreeCtrl#on_compare_items can not work
- [ wxruby-Bugs-13734 ] Problem with TreeCtrl#get_first_child and #get_next_child on MSW
- [ wxruby-Bugs-13640 ] Invalid value for TreeCtrl#get_root_id when TR_HIDE_ROOT style is set (MSW)
- [681] trunk/wxruby2/samples/treectrl/treectrl.rb: wxMAC does not like menu id''s of 0 so I fixed that also made set_item_text_colour
- [832] trunk/wxruby2/samples: Fix samples for TreeItemIds as integers, fix image size in treectrl sample