ultimatepp/tutorial/Gui20a/main.cpp
cxl 70d8b6d67a .tutorial
git-svn-id: svn://ultimatepp.org/upp/trunk@15651 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2021-01-07 10:56:31 +00:00

18 lines
292 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct MyAppWindow : TopWindow {
Button exit;
MyAppWindow() {
SetRect(0, 0, Zx(100), Zy(100));
Add(exit.SetLabel("exit").LeftPosZ(10, 64).TopPosZ(10, 24));
exit << [=] { Break(999); };
}
};
GUI_APP_MAIN
{
MyAppWindow().Run();
}