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 blur a Ctrl
Re: How to blur a Ctrl [message #48811 is a reply to message #48810] Sun, 24 September 2017 16:27 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3362
Registered: August 2008
Senior Veteran
Thank you Mirek

I have tried it with DwmEnableBlurBehindWindow(). However I can only blur all TopWindow and not simply a region.
As this feature is not too important for me, I will maintain this:
	void Paint(Draw& w) {
		Size sz = GetSize();
	
		for (double x = 0; x < sz.cx; x += (visible + hidden)) 
			for (double y = 0; y < sz.cy; y += (visible + hidden)) 
				w.DrawRect(int(x), int(y), int(hidden), int(hidden), SColorFace);
	}
	void Layout() {
		Font f = parent->GetFont();
		int q = f.GetHeight();
		visible = 0.1*q;
		hidden = 0.3*q;
	}


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Closed] Get size and position of widget
Next Topic: Size of TopWindow is different then the size I set for it
Goto Forum:
  


Current Time: Mon May 20 18:44:01 CEST 2024

Total time taken to generate the page: 0.00798 seconds