mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-31 22:02:58 -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,62 +0,0 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
ArrayCtrl a;
|
||||
a.HeaderObject().Absolute();
|
||||
Array<EditString> es;
|
||||
for(int i = 0; i < 30; i++)
|
||||
a.AddColumn(FormatIntAlpha(i), 120).Edit(es.Add());
|
||||
for(int i = 0; i < 300; i++) {
|
||||
Vector<Value> x;
|
||||
for(int i = 0; i < 30; i++)
|
||||
x.Add(FormatIntAlpha(rand()));
|
||||
a.Add(x);
|
||||
}
|
||||
TopWindow app;
|
||||
app.Add(a.HSizePos(10, 10).VSizePos(20, 20));
|
||||
app.SetRect(0, 0, 1000, 600);
|
||||
app.Open();
|
||||
Ctrl::AutoBackPaintAreaSize = 0;
|
||||
Ctrl::ProcessEvents();
|
||||
app.NoBackPaint();
|
||||
{
|
||||
TimeStop s;
|
||||
for(int i = 0; i < 200; i++) {
|
||||
app.Refresh();
|
||||
app.Sync();
|
||||
Draw::Flush();
|
||||
}
|
||||
RLOG("Direct paint time: " << s);
|
||||
}
|
||||
{
|
||||
TimeStop s;
|
||||
for(int i = 0; i < 200; i++) {
|
||||
a.SetCursor(i);
|
||||
app.Sync();
|
||||
Draw::Flush();
|
||||
}
|
||||
RLOG("Direct scroll time: " << s);
|
||||
}
|
||||
a.SetCursor(0);
|
||||
app.BackPaint();
|
||||
{
|
||||
TimeStop s;
|
||||
for(int i = 0; i < 200; i++) {
|
||||
app.Refresh();
|
||||
app.Sync();
|
||||
Draw::Flush();
|
||||
}
|
||||
RLOG("Back paint time: " << s);
|
||||
}
|
||||
{
|
||||
TimeStop s;
|
||||
for(int i = 0; i < 200; i++) {
|
||||
a.SetCursor(i);
|
||||
app.Sync();
|
||||
Draw::Flush();
|
||||
}
|
||||
RLOG("Back scroll time: " << s);
|
||||
}
|
||||
PromptOK("Finished");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue