mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
33 lines
509 B
C++
33 lines
509 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct App : TopWindow {
|
|
ArrayCtrl a;
|
|
|
|
bool Order(int i1, int i2) {
|
|
DDUMP(a.Get(i1, 0));
|
|
DDUMP(a.Get(i2, 0));
|
|
return a.Get(i1, 0) < a.Get(i2, 0);
|
|
}
|
|
|
|
typedef App CLASSNAME;
|
|
|
|
App() {
|
|
Add(a.SizePos());
|
|
Sizeable().Zoomable();
|
|
|
|
a.AddColumn("Test");
|
|
for(int i = 0; i < 200; i++) {
|
|
a.Add((int)Random(10000));
|
|
}
|
|
// a.Sort(THISBACK(Order));
|
|
a.Sort();
|
|
}
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
DUMP("Test");
|
|
App().Run();
|
|
}
|