What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Solved] Borderless transparent button?

[Solved] Borderless transparent button?
Author: Message:
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
O.P. [Solved] Borderless transparent button?
Is it possible to have a totally transparent button?

I have an image as the background of one of my windows, and I want to make certain areas clickable (sort of like an image map). I have placed the buttons over these areas transparently, and this works well. Apart from one small problem:

I have the following in my XML file, which makes the buttons transparent, but I get an annoying white border around the edge of the buttons which I can't seem to get rid of (it vanishes when the mouse hovers over the button and when the button is pressed, but returns when the mouse moves away). Any clues? :undecided:
code:
            <Control xsi:type="ButtonControl" Id="BtnClose">
                <Position Left="215" Top="163" Width="76"/>
                <CustomGradient>
                    <Normal>
                        <Color1><Red>0</Red><Green>0</Green><Blue>0</Blue><Alpha>000</Alpha></Color1>
                        <Color2><Red>0</Red><Green>0</Green><Blue>0</Blue><Alpha>000</Alpha></Color2>
                        <Shadow>false</Shadow>
                    </Normal>
                    <Hot>
                        <Color1><Red>0</Red><Green>0</Green><Blue>0</Blue><Alpha>000</Alpha></Color1>
                        <Color2><Red>0</Red><Green>0</Green><Blue>0</Blue><Alpha>000</Alpha></Color2>
                    </Hot>
                    <Pushed>
                        <Color1><Red>0</Red><Green>0</Green><Blue>0</Blue><Alpha>000</Alpha></Color1>
                        <Color2><Red>0</Red><Green>0</Green><Blue>0</Blue><Alpha>000</Alpha></Color2>
                    </Pushed>
                </CustomGradient>
                <Caption>Close</Caption>            </Control>

I've already tried using Images of the buttons on the buttons themselves, but positioning them right was too much of a hastle and just looked dodgy in the end.

This post was edited on 07-11-2006 at 01:34 PM by pollolibredegrasa.
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
07-10-2006 10:47 PM
Profile PM Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: [Help] Borderless transparent button?
Just put an image element with no image (or a static control with no content) and use the standard 'OnWindowidEvent_CtrlClicked()' event.
07-11-2006 08:40 AM
Profile PM Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
O.P. RE: [Help] Borderless transparent button?
I looked at that but in the documentation it says:

The OnWindowidEvent_CtrlClicked event is fired when a ButtonControl, a CheckBoxControl, a RadioControl, a MenuButtonControl or a LinkControl is clicked.

So this wouldn't work. :(
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
07-11-2006 09:43 AM
Profile PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
37 / Male / –
Joined: May 2004
Status: Away
RE: [Help] Borderless transparent button?
Making an invisible button is simple, just give it a custom look instead of a custom gradient.

<CustomLook>

you give it a hot, normal and pushed thing as with the customgradientand if you leave the custom look tag empty, it'll be invisible, if you want text where the button is, just put a StaticControl inside the custom look tags.  Basically with custom look, you can make a button look like any other control or element.  You could scrap the image element and put it inside the custom look for the button instead.
07-11-2006 10:18 AM
Profile E-Mail PM Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
O.P. RE: [Solved] Borderless transparent button?
Thanks alexp2_ad, that worked :)
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
07-11-2006 01:35 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On