ultimatepp/bazaar/SDL/SDLCtrl.usc
koldo 1f6fe78ce6 SDL: SDLSurface is parent of SDLCtrl. Included .usc
git-svn-id: svn://ultimatepp.org/upp/trunk@2854 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2010-11-20 00:07:12 +00:00

22 lines
No EOL
465 B
Text

ctrl SDLCtrl {
group "Complex";
GetMinSize() { return Size(0, 0); }
GetStdSize() { return Size(140, 140); }
Frame SetFrame @1;
Paint(w) {
r = GetRect();
DrawCtrlFrame(w, r, .SetFrame);
sz = Size(r.right - r.left, r.bottom - r.top);
DeflateRect(r);
sz = Size(r.right - r.left, r.bottom - r.top);
w.DrawRect(r.left, r.top, sz.cx, sz.cy, :SWhite);
img = "SDL:SDLCtrl.iml:Icon_SDL";
w.DrawImage(r.left, r.top, img);
}
}