#include using namespace Upp; #define LAYOUTFILE #include class MyApp : public WithLayout1 { public: MyApp() { CtrlLayout(*this, "Window title"); layout1 << [=] { SetLayout_Layout1(*this); }; layout2 << [=] { SetLayout_Layout2(*this); }; } }; GUI_APP_MAIN { MyApp().Run(); }