ultimatepp/uppdev/SmartText/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

20 lines
387 B
C++

#include "SmartText.h"
void SmartText::Paint(Draw& w)
{
Size sz = GetSize();
w.DrawRect(sz, White);
DrawTLText(w, 10, 10, sz.cx - 20, ToUnicode("Hello wor\tld", CHARSET_DEFAULT), Arial(20), SColorText(), 'L');
}
SmartText::SmartText()
{
button.SetRect(200, 200, 100, 50);
Add(button);
button.SetLabel("\1[A5 \aWorld");
}
GUI_APP_MAIN
{
SmartText().Run();
}