ultimatepp/uppdev/DrawingText/main.cpp
cxl 85bced9279 syncing uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@1475 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-08-04 14:52:34 +00:00

27 lines
418 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct App : public TopWindow {
Drawing dw;
void Paint(Draw& w) {
Size sz = GetSize();
w.DrawRect(sz, SWhite);
w.DrawDrawing(sz, dw);
}
App()
{
Sizeable();
DrawingDraw w(1000, 1000);
for(int i = 0; i < 10; i++)
w.DrawText(500, 500, 300 * i, " Test", Arial(20));
dw = w;
}
};
GUI_APP_MAIN
{
App().Run();
}