Home » U++ Library support » TopWindow&PopUp, TrayIcon » Adding transparent Ctrls to main window
Adding transparent Ctrls to main window [message #26081] |
Tue, 30 March 2010 21:41  |
 |
bushman
Messages: 134 Registered: February 2009
|
Experienced Member |
|
|
I´ve learned how to load an image and set it as my main window background. Now, is it possible to add transparent Ctrls to the main window, so that the background image is visible through the Ctrl panes?
I´m running on Windows.
Thank you!
[Updated on: Tue, 30 March 2010 21:44] Report message to a moderator
|
|
|
Re: Adding transparent Ctrls to main window [message #26102 is a reply to message #26081] |
Thu, 01 April 2010 13:29  |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
In some cases yes, but mainly no. Ctrls tend to draw their own backgrounds ('w.DrawRect(GetSize(), SColorPaper)' usually), so whether or not it can be made transparent is up to the Ctrl.
ArrayCtrl has a NoBackground option, and some other controls will not draw their background if IsTransparent is set. You'll just have to look at each one. You will have a problem with things like buttons because they are drawn according to native theming and the background for the edges/rounded corners is baked into the theme image. You will have to modify their Chameleon style to get those to look right I think.
[Updated on: Thu, 01 April 2010 13:47] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat May 10 21:02:33 CEST 2025
Total time taken to generate the page: 0.02868 seconds
|