Home » U++ Library support » TopWindow&PopUp, TrayIcon » Adding transparent Ctrls to main window
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 16:16:10 CEST 2025
Total time taken to generate the page: 0.02925 seconds
|