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 » U++ Library support » U++ Widgets - General questions or Mixed problems » How to set transparency level for static rectangle?
How to set transparency level for static rectangle? [message #909] Wed, 08 February 2006 02:22 Go to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
How to set transparency level for static rectangle or other controls?

I have this code(one rect semi-covers the other):

#include <CtrlLib/CtrlLib.h>


GUI_APP_MAIN
{
	TopWindow w;
	Array<StaticRect> fr;

	fr.Add();
	fr[0].SetRect(50,50,100,100);
	fr[0].Color(SRed);
	fr.Add();
	fr[1].SetRect(100,100,100,100);
	fr[1].Color(SBlue);
		
	
	w.Add(fr[0]);
	w.Add(fr[1]);
	
	
	w.Run();
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Qtf and drawing
Next Topic: RemoveFullRefresh(), how?
Goto Forum:
  


Current Time: Thu May 23 10:26:50 CEST 2024

Total time taken to generate the page: 0.02732 seconds