mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-26 22:03:35 -06:00
.uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@7358 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b1056e6479
commit
407eabd819
8 changed files with 133 additions and 88 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue