ultimatepp/uppdev/TestDraw/main.cpp
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

34 lines
537 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
void DoPaint(Draw& w) {
Size sz = GetSize();
w.DrawRect(sz, SWhite);
w.DrawRect(200, 200, 1, 1, SBlack);
for(int i = 0; i < 3600; i += 450)
w.DrawText(200, 200, i, "Test of angle!", Arial(30));
}
class TestDraw : public TopWindow {
virtual void Paint(Draw& w) {
DoPaint(w);
}
public:
typedef TestDraw CLASSNAME;
TestDraw();
};
TestDraw::TestDraw()
{
Sizeable();
}
GUI_APP_MAIN
{
Exclamation("Hello world!");
// TestDraw().Run();
}