mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
Syncing uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@1604 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e2231b4c90
commit
b0111e0dbd
1 changed files with 10 additions and 5 deletions
|
|
@ -5,12 +5,17 @@ using namespace Upp;
|
||||||
GUI_APP_MAIN
|
GUI_APP_MAIN
|
||||||
{
|
{
|
||||||
TopWindow win;
|
TopWindow win;
|
||||||
PopUpTree tree;
|
DropTree dt;
|
||||||
|
|
||||||
tree.SetRoot(CtrlImg::cut(), "Root");
|
dt->SetRoot(CtrlImg::Home(), "Home");
|
||||||
tree.Add(0, Null, "Test");
|
for(int i = 0; i < 10; i++) {
|
||||||
|
int id = dt->Add(0, CtrlImg::Computer(), "Computer " + AsString(i + 1));
|
||||||
|
for(int j = 0; j < i; j++)
|
||||||
|
dt->Add(id, CtrlImg::File(), "File " + AsString(j + 1));
|
||||||
|
}
|
||||||
|
|
||||||
win.Add(tree.HSizePos().VSizePos(0, Ctrl::STDSIZE));
|
dt.AutoResize();
|
||||||
|
|
||||||
|
win.Add(dt.HSizePos().TopPos(0, Ctrl::STDSIZE));
|
||||||
win.Run();
|
win.Run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue