mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -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
10
uppdev/ArrayCtrlPaint/ArrayCtrlPaint.upp
Normal file
10
uppdev/ArrayCtrlPaint/ArrayCtrlPaint.upp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
new.cpp,
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI ST";
|
||||
|
||||
4
uppdev/ArrayCtrlPaint/init
Normal file
4
uppdev/ArrayCtrlPaint/init
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef _ArrayCtrlPaint_icpp_init_stub
|
||||
#define _ArrayCtrlPaint_icpp_init_stub
|
||||
#include "CtrlLib/init"
|
||||
#endif
|
||||
62
uppdev/ArrayCtrlPaint/main.cpp
Normal file
62
uppdev/ArrayCtrlPaint/main.cpp
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
#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