ultimatepp/tutorial/Gui20a/main.cpp
klugier f66ea03045 Tutorial: GUI tutorial typedef removal.
git-svn-id: svn://ultimatepp.org/upp/trunk@15426 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-11-16 01:40:57 +00:00

22 lines
295 B
C++

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