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?
Re: How to set transparency level for static rectangle? [message #998 is a reply to message #997] Mon, 13 February 2006 12:29 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14255
Registered: November 2005
Ultimate Member
Well, you can have this: it is window-level alpha blending, supported by Ctrl::SetAlpha.

The only problem you have to be aware of is that unlike all other things, you can use SetAlpha just for windows that are open at the moment (this is not U++ way, perhaps I should fix that..)

Try (untested):

GUI_APP_MAIN
{
TopWindow win;
win.Open();
win.SetAlpha(100);
win.Run();
}

Another thing to know is that it does not work before Win2000 or in Linux (is NOP).

BTW, what you cannot have is alpha blending of shapes in your view area (this requires GDI+ on Win32, which is not implicit on all platforms we want to support...)

Mirek
 
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: Mon Apr 28 16:55:05 CEST 2025

Total time taken to generate the page: 0.03600 seconds