Home » Developing U++ » UppHub » RadioButton
Re: RadioButton [message #22123 is a reply to message #22122] |
Thu, 18 June 2009 22:19  |
andrei_natanael
Messages: 262 Registered: January 2009
|
Experienced Member |
|
|
I forgot to attach *.usc file for Designer...
ctrl RadioButton {
group "Push";
GetMinSize() { sz = XMinSize(); sz.cy += 2; return sz; }
GetStdSize() { sz = GetMinSize(); sz.cx *= 7; sz.cy = max(16, sz.cy); return sz; }
Doc SetLabel;
Font SetFont = StdFont();
bool SetEditable = true @1 ? "Editable";
Paint(w)
{
sz = GetSize();
tcy = GetTextSize("W", .SetFont).cy;
imagesize = GetImageSize("ClassicCtrlsImg::S0");
x = 0;
y = 0;
w.DrawImage(x, y, "ClassicCtrlsImg::S0");
w.DrawSmartText(x + imagesize.cx + 4, y + (imagesize.cy - tcy) / 2,
.SetLabel, .SetFont);
}
};
|
|
|
Goto Forum:
Current Time: Fri May 02 10:25:57 CEST 2025
Total time taken to generate the page: 0.03141 seconds
|