mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.upptst
This commit is contained in:
parent
f6e6277285
commit
2f708e1915
1 changed files with 17 additions and 5 deletions
|
|
@ -3,22 +3,34 @@
|
|||
using namespace Upp;
|
||||
|
||||
struct MyApp : TopWindow {
|
||||
Label label;
|
||||
Label label[3];
|
||||
TimeCallback tm;
|
||||
|
||||
MyApp() {
|
||||
Sizeable().Zoomable();
|
||||
|
||||
Add(label.LeftPos(0, 1000).TopPos(0, 200));
|
||||
label.SetFont(Arial(200));
|
||||
|
||||
#if 0
|
||||
tm.Set(-100, [=] {
|
||||
static int ii;
|
||||
label[0] = AsString(ii++);
|
||||
});
|
||||
#endif
|
||||
|
||||
for(int i = 0; i < 3; i++) {
|
||||
Add(label[i].LeftPos(0, 1000).TopPos(i * 200, 200));
|
||||
label[i].SetFont(Arial(200));
|
||||
}
|
||||
|
||||
Thread::Start([=] {
|
||||
int ii = 0;
|
||||
for(;;) {
|
||||
Sleep(100);
|
||||
GuiLock __;
|
||||
DDUMP(ii);
|
||||
if(IsShutdownThreads())
|
||||
break;
|
||||
label = AsString(ii++);
|
||||
label[1] = AsString(ii++);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue