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 » Community » Newbie corner » Display transparent paper
Re: Display transparent paper [message #58053 is a reply to message #58052] Sun, 30 January 2022 18:20 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 527
Registered: March 2007
Contributor
Yes, it should work as you wanted.

Test code
#include <CtrlLib/CtrlLib.h>
using namespace Upp;

struct App:TopWindow
{
	void Paint(Draw& w)override
	{
		w.DrawRect(GetSize(), Cyan());
//		w.DrawRect(GetSize()/2, SColorPaper());
		w.DrawRect(GetSize()/2, Null); // Do nothing, transparant background achieved.
	}
};

GUI_APP_MAIN
{
	App().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: Generic questions about graphic
Next Topic: Synchronize to Github
Goto Forum:
  


Current Time: Sat May 18 01:30:05 CEST 2024

Total time taken to generate the page: 0.01314 seconds