Displaying 2 results from an estimated 2 matches for "declare_dynamic_class".
2007 Jul 18
0
[ wxruby-Bugs-12360 ] TreeCtrl#on_compare_items not working on MSW
...itial 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.
--------------------------------------------------------------------...
2007 Apr 13
0
[956] branches/wxruby2/wxwidgets_282: Additions to TreeCtrl API 2.6->2.8
...less than, equal to or greater than the
</span><span class="cx"> second one.
</span><span class="cx">
</span><del>-The base class version compares items alphabetically.
</del><ins>+Please note that you must use RTTI macros
+"DECLARE_DYNAMIC_CLASS":declaredynamicclass.html and
+"IMPLEMENT_DYNAMIC_CLASS":implementdynamicclass.html if you override this
+function because otherwise the base class considers that it is not overridden
+and uses the default comparison, i.e. sorts the items alphabetically, which
+allows it optimize aw...