What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Interface Windows - Custom Look

Pages: (2): « First [ 1 ] 2 » Last »
[?] Interface Windows - Custom Look
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. [?] Interface Windows - Custom Look
could anyone explain to me how to use custom look in interface windows?
[quote]
Ultimatess6
: What a noob mod
08-10-2007 04:04 AM
Profile PM Web Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: [?] Interface Windows - Custom Look
code:
<Control xsi:type="ButtonControl" Id="Btn">
<Position Top="5" Left="5" Width="50" Height="10"/>
<CustomLook>
<Normal>
<Element xsi:type="TextElement" Id="BtnNormText">
<Position Top="0" Left="0" Width="50" Height="10"/>
<Text>Norm</Text>
</Element>
</Normal>
<Hot>
<Element xsi:type="TextElement" Id="BtnHotText">
<Position Top="0" Left="0" Width="50" Height="10"/>
<Text>Hot</Text>
</Element>
</Hot>
<Pushed>
<Element xsi:type="TextElement" Id="BtnPushedText">
<Position Top="0" Left="0" Width="50" Height="10"/>
<Text>Pushed</Text>
</Element>
</Pushed>
</CustomLook>
</Control>


Note: this code is not tested, please say if it does not work and I will make sure it will work

This code is a button that when not hovered/pushed it will display the text "Norm" with no background. When Hovered over it will display "Hot" with no background and when pushed it will display the text "Pushed" with no background.

I hope this is what you were after...
08-10-2007 06:23 AM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [?] Interface Windows - Custom Look
You could have a look at SS4 as it uses CustomLook on the side bar (which are all actually radio controls) or PSM+ which is the same code
<Eljay> "Problems encountered: shit blew up" :zippy:
08-10-2007 02:21 PM
Profile PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] Interface Windows - Custom Look
thanks, but i wonder if there is a "<Disabled>" tag? :P
[quote]
Ultimatess6
: What a noob mod
08-18-2007 09:17 PM
Profile PM Web Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: [?] Interface Windows - Custom Look
quote:
Originally posted by roflmao456
thanks, but i wonder if there is a "<Disabled>" tag? :P
yes there is, but is it not always needed... just look up the scripting doc =\
08-19-2007 01:15 AM
Profile PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] Interface Windows - Custom Look
ok,

i'm trying to change the image of an ImageElement inside the Normal, Hot, and Pushed tags using the
code:
Wnd.ImageElmt_SetImageFile("BtnImg1","Image2.png");
but it won't work. it will just show in the debug:

Invalid procedure [...]

This post was edited on 08-19-2007 at 07:29 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
08-19-2007 07:25 PM
Profile PM Web Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: [?] Interface Windows - Custom Look
try this one:

code:
<Control xsi:type="ButtonControl" Id="btnYourButtonId">
    <Position Left="123" Top="123" Width="123" Height="123" />
    <Caption>Alternative Caption here</Caption>
    <CustomLook>
        <Normal>
            <Element xsi:type="ImageElement" Id="btnYourButtonIdNormal">
                <Position Top="0" Left="0" />
                <Image>
                    <Name>without-dot-png-your-image-file-normal</Name>
                </Image>
            </Element>
        </Normal>
        <Hot>
            <Element xsi:type="ImageElement" Id="btnYourButtonIdHot">
                <Position Top="0" Left="0" />
                <Image>
                    <Name>without-dot-png-your-image-file-hot</Name>
                </Image>
            </Element>
        </Hot>
        <Pushed>
            <Element xsi:type="ImageElement" Id="btnYourButtonIdPushed">
                <Position Top="0" Left="0" />
                <Image>
                    <Name>without-dot-png-your-image-file-pushed</Name>
                </Image>
            </Element>
        </Pushed>
    </CustomLook>
</Control>

Regards,
mynetx
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
08-20-2007 11:41 AM
Profile E-Mail PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] Interface Windows - Custom Look
quote:
Originally posted by mynetx

actually the XML is working fine, it's just changing the element's images using script.
[quote]
Ultimatess6
: What a noob mod
08-20-2007 02:32 PM
Profile PM Web Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: [?] Interface Windows - Custom Look
Invalid procedure seems to tell you that the method isn't valid for the given object, that is, Wnd is no correct Plus Window Object in the moment of execution.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
08-20-2007 02:37 PM
Profile E-Mail PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] Interface Windows - Custom Look
quote:
Originally posted by mynetx
Invalid procedure seems to tell you that the method isn't valid for the given object, that is, Wnd is no correct Plus Window Object in the moment of execution.
code:
var Wnd = MsgPlus.CreateWnd("windows.xml","test");

?
[quote]
Ultimatess6
: What a noob mod
08-20-2007 02:44 PM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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