mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-04 00:54:54 -06:00
reorganizing repo
git-svn-id: svn://ultimatepp.org/upp/trunk@9206 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7d17505cfe
commit
e3e8d627f5
3840 changed files with 0 additions and 1161578 deletions
|
|
@ -1,43 +0,0 @@
|
|||
#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