.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@14533 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-06-01 16:01:50 +00:00
parent 3cd4f0cd68
commit 8d9714ac3f

View file

@ -19,6 +19,7 @@ struct OpenGLExample : GLCtrl {
w.DrawLine(45, 45, 80, 120, 4, Blue);
w.DrawLine(80, 90, 400, 0, PEN_DASHDOT);
w.DrawImage(200, 10, CtrlImg::reporticon());
w.DrawImage(280, 10, CtrlImg::reporticon(), Red());
const char *text = "This text is centered";
Size tsz = GetTextSize(text, Arial(25).Bold());
w.DrawText((sz.cx - tsz.cx) / 2, (sz.cy - tsz.cy) / 2, text, Arial(27).Bold(), SBlue);