ultimatepp/tutorial/Gui04/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

21 lines
372 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct MyAppWindow : TopWindow {
virtual void Paint(Draw& w) override {
w.DrawRect(GetSize(), SWhite());
w.DrawText(20, 20, "Hello world!", Arial(30), Magenta);
}
MyAppWindow() {
Title("My application").Zoomable().Sizeable();
}
};
GUI_APP_MAIN
{
MyAppWindow app;
app.SetRect(0, 0, 400, 100);
app.Run();
}