Clear controls?

I've been messing around with making some gadgets - and here and there I would like some of the controls to be transpareny. Is there any way to make the DesktopX controls such as 'ListBox' transparent?
1,958 views 6 replies
Reply #1 Top
I don't think so - you'd probably have to "roll" your own.
Reply #2 Top
I know one way, kind of. I tried this with an Edit Box (and some other ActiveX stuff...see this screenie: HoloMP3)
. I think it'll work with other DX controls. What you need is a parent object, which you'll usually have. Say a background graphic or something. Then set the parent of the DXControl as that background. Also, and this is key, set the DXControl to be a child (Child: Yes).

Now you can assign the DXControl a transparency in the script with Object.Opacity = XX


If the parent object itself has transparency (in the graphic or by DX), or is nearly completely clear and similarly sized as the child Control, there is actually quite a bit of control over how it looks.
Reply #3 Top
RR - Very good! You actually don't need the script to assign the transparency, you can do it in the properties, as long as the control object is a child of the other.
Reply #4 Top
The history for DX says this under the v.3 release: - Implemented ActiveX transparency. Just use uniform transparency in
properties or use Object.opacity.

But it didn't appear to work for the DesktopX Edit Control...
Reply #5 Top
It only works if the control is contained by an object.
Reply #6 Top
Here is an experimental gadget using ActiveX control transparency with the WMP control. http://www.deviantart.com/view/23373343/