ultimatepp/tutorial/Gui20a/main.cpp
mdelfede d2b54f7989 changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-06-07 22:31:27 +00:00

24 lines
322 B
C++

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