Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » RadioButton
Re: RadioButton [message #22123 is a reply to message #22122] Thu, 18 June 2009 22:19 Go to previous message
andrei_natanael is currently offline  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);
	}
};
 
Read Message
Read Message
Previous Topic: OfficeAutomation documented
Next Topic: LuaPlus packages
Goto Forum:
  


Current Time: Thu Jun 13 01:11:22 CEST 2024

Total time taken to generate the page: 0.02202 seconds