mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-06 10:04:55 -06:00
Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
adf46bd64e
commit
2e4b276e07
3860 changed files with 1161787 additions and 438 deletions
43
uppdev/ArrayCtrl/main.cpp
Normal file
43
uppdev/ArrayCtrl/main.cpp
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
#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);
|
||||
}
|
||||
|
||||
void DoTip(Point p)
|
||||
{
|
||||
if(p.y & 1)
|
||||
a.Tip("Hello!");
|
||||
else
|
||||
a.Tip("");
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
a.WhenMouseMove = THISBACK(DoTip);
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
DUMP("Test");
|
||||
App().Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue