Shoutbox

Transparent background in scripted Plus windows - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Transparent background in scripted Plus windows (/showthread.php?tid=78861)

Transparent background in scripted Plus windows by mynetx on 11-08-2007 at 07:58 AM

Well, for some reason, I'd like to create a Plus Window in a script that has a completely transparent background. That is, not the opacity level of the window in total, but only the background should be visible through (maybe also clickable through in the areas shining through, though the controls in the window should remain useable).

I experimented with some code like this:

code:
        <WindowTmpl>
            <Corners Shape="Rectangular">
            </Corners>
            <Borders Type="None"></Borders>
            <BackgroundColor>
                <Red>0</Red>
                <Green>0</Green>
                <Blue>0</Blue>
                <Alpha>0</Alpha>
            </BackgroundColor>
        </WindowTmpl>

Actually it doesn't seem to work.

If there's no way to accomplish this directly in Plus's XML, maybe there's a way to use a Windows API call to tell the corresponding window to make it's background color let the things under it (e.g. desktop) shine through.
(For clickability, is there a need to catch the clicks and forward them to the operating system, and yes, how to do in Plus JScript?). Last question: what about anti-aliasing for the Controls in windows with transparent back?

Thanks in advance for help.
Enclosed is the current look, and an edited image to give you an idea of what it should look like (merged into 1 attachment).
RE: Transparent background in scripted Plus windows by -dt- on 11-08-2007 at 08:08 AM

It would be great if we could use
DwmExtendFrameIntoClientArea
but :( because theres no window frame to extend it doesn't work