ultimatepp/autotest/CtrlChildren/main.cpp
Mirek Fidler e05b8ee4b4 .autotest
2023-01-16 13:59:31 +01:00

29 lines
428 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
TopWindow top;
Label lbl;
EditInt edit;
StaticRect list;
auto Print = [&] {
DLOG("==============================");
for(Ctrl& q : top)
DLOG(typeid(q).name());
};
top << lbl << edit;
Print();
top.AddChild(&list, &lbl);
Print();
lbl.Remove();
Print();
edit.Ctrl::Remove();
Print();
list.Ctrl::Remove();
Print();
CheckLogEtalon();
}