Document wxDataViewListCtrl default sort order
Also explain how to change it if the default behaviour of putting all the container items before all the leaves is undesirable. Closes #16105.
This commit is contained in:
@@ -3405,6 +3405,13 @@ public:
|
|||||||
without having to derive any class from it, but it is mostly used from within
|
without having to derive any class from it, but it is mostly used from within
|
||||||
wxDataViewTreeCtrl.
|
wxDataViewTreeCtrl.
|
||||||
|
|
||||||
|
Notice that by default this class sorts all items with children before the
|
||||||
|
leaf items. If this behaviour is inappropriate, you need to derive a custom
|
||||||
|
class from this one and override either its HasDefaultCompare() method to
|
||||||
|
return false, which would result in items being sorted just in the order in
|
||||||
|
which they were added, or its Compare() function to compare the items using
|
||||||
|
some other criterion, e.g. alphabetically.
|
||||||
|
|
||||||
@library{wxadv}
|
@library{wxadv}
|
||||||
@category{dvc}
|
@category{dvc}
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user