]> git.saurik.com Git - wxWidgets.git/commit - samples/treelist/treelist.cpp
Implement sorting in wxTreeListCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Sep 2011 15:07:53 +0000 (15:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Sep 2011 15:07:53 +0000 (15:07 +0000)
commitda2e758f83f62cf9ff3bed69aecb8fc00f2583df
treeb39d4dcb6c6b4949bcd2dae6542966258e488e02
parent15b8afdcb8732a17679c08a9c23ebe1c0226eaf6
Implement sorting in wxTreeListCtrl.

Allow the user to sort the control contents by clicking on the columns with
wxCOL_SORTABLE flag and also provide SetSortColumn() method to sort the
control programmatically.

Also add wxTreeListItemComparator class and SetItemComparator() method to
allow customizing the way the items are compared.

Update the sample to show how to define a custom comparator.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/treelist.h
interface/wx/treelist.h
samples/treelist/treelist.cpp
src/generic/treelist.cpp