ultimatepp/tutorial/Gui20b/main.cpp
klugier 92ba0bf056 Tutorial: MyAppWindow name standardization accross GUI tutorials.
git-svn-id: svn://ultimatepp.org/upp/trunk@15482 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-11-21 23:42:10 +00:00

18 lines
278 B
C++

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