mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
23 lines
388 B
C++
23 lines
388 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
#define LAYOUTFILE <SetLayout/SetLayout.lay>
|
|
#include <CtrlCore/lay.h>
|
|
|
|
class MyApp : public WithLayout1<TopWindow> {
|
|
public:
|
|
MyApp()
|
|
{
|
|
CtrlLayout(*this, "Window title");
|
|
layout1 << [=] { SetLayout_Layout1(*this); };
|
|
layout2 << [=] { SetLayout_Layout2(*this); };
|
|
}
|
|
};
|
|
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
MyApp().Run();
|
|
}
|
|
|