git-svn-id: svn://ultimatepp.org/upp/trunk@7358 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-05-05 07:49:29 +00:00
parent b1056e6479
commit 407eabd819
8 changed files with 133 additions and 88 deletions

View file

@ -4,6 +4,11 @@ class ArrayCtrlSort : public TopWindow {
ArrayCtrl a;
EditDouble ed1, ed2;
bool SortTest(int i1, int i2)
{
return a.Get(i1, 0) > a.Get(i2, 0);
}
public:
typedef ArrayCtrlSort CLASSNAME;
ArrayCtrlSort();
@ -27,7 +32,9 @@ ArrayCtrlSort::ArrayCtrlSort()
for(int i = 0; i < 100; i++)
a.Add(rand() % 20, rand() % 10);
Add(a.SizePos());
a.ColumnSort(3, StdValueOrder());
// a.ColumnSort(3, StdValueOrder());
a.Sort(10, 40, THISBACK(SortTest));
}
GUI_APP_MAIN