ultimatepp/uppdev/TestDraw/main.cpp
cxl 75400de4ec uppdev sync
git-svn-id: svn://ultimatepp.org/upp/trunk@1284 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-06-05 13:47:02 +00:00

38 lines
706 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
class TestDraw : public TopWindow {
Button ok;
DocEdit edit;
virtual void Paint(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));
}
public:
typedef TestDraw CLASSNAME;
TestDraw();
};
TestDraw::TestDraw()
{
Sizeable();
Add(ok.LeftPos(10, 100).TopPos(10, 20));
ok.SetLabel("TEST");
Add(edit.LeftPos(100, 300).TopPos(10, 100));
}
GUI_APP_MAIN
{
DUMP(GetStdFont());
FontInfo fi = GetStdFont().Info();
DUMP(fi.GetHeight());
DUMP(fi['X']);
TestDraw().Run();
}