mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
12 lines
262 B
Text
12 lines
262 B
Text
ctrl MyCtrl {
|
|
group "Example";
|
|
|
|
GetMinSize() { sz = GetTextSize("X"); sz.cy += 2; return sz; }
|
|
GetStdSize() { sz = GetMinSize(); sz.cx *= 7; return sz; }
|
|
|
|
Paint(w) {
|
|
r = GetRect();
|
|
w.DrawRect(r, :White);
|
|
w.DrawText(2, 2, "0", StdFont(), :Black);
|
|
}
|
|
};
|