What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Windows close button

[Help] Windows close button
Author: Message:
DarkGhost
New Member
*


Posts: 14
Joined: May 2007
O.P. [Help] Windows close button
Hello I am pretty new at Scripting but I made a window  and the close button doesnt work, code for the window is


code:
<?xml version="1.0" encoding="UTF-16"?>
<Interfaces xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">   
<Window Id="schange" Version="1">       
<Attributes>           
<Caption>You Changed Ur Shit!!</Caption>
        </Attributes>
        <TitleBar>
            <Title><Text>Ello mate</Text></Title>
        </TitleBar>
        <Position Width="180" Height="75" Left="100"/>
        <DialogTmpl/>
        <Controls>
            <Control xsi:type="StaticControl" Id="LblTop">
                <Position Left="10" Top="10" Width="150"/>
                <Caption>You changed ur status</Caption>
            </Control>
            <Control xsi:type="ButtonControl" Id="BtnClose">
                <Position Left="112" Top="25" Width="50"/>               
<Caption>Close</Caption>
            </Control>
        </Controls>
    </Window>
</Interfaces>
and for windows live script it is:
code:
function OnEvent_Initialize(MessengerStart)
{
}

function OnEvent_Uninitialize(MessengerExit)
{
}
function OnEvent_MyStatusChange()
{
var Wnd = MsgPlus.CreateWnd("InterfaceTest.xml", "schange");
}
function OnWndTestEvent_CtrlClicked(Wnd, ControlId)
{
Debug.Trace("Hello World!");
if(ControlId == "BtnClose") Wnd.Close(1); Debug.Trace("woot");

}

main point is the close  button doesnt work :( WHYY!
05-21-2007 01:10 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Windows close button - by DarkGhost on 05-21-2007 at 01:10 AM
RE: [Help] Windows close button - by matty on 05-21-2007 at 03:05 AM
RE: RE: [Help] Windows close button - by CookieRevised on 05-21-2007 at 04:12 AM
RE: RE: RE: [Help] Windows close button - by Volv on 05-21-2007 at 11:27 AM
RE: [Help] Windows close button - by CookieRevised on 05-21-2007 at 11:31 AM
RE: [Help] Windows close button - by DarkGhost on 05-21-2007 at 07:38 PM
RE: [Help] Windows close button - by CookieRevised on 05-23-2007 at 01:12 AM
RE: [Help] Windows close button - by DarkGhost on 05-23-2007 at 01:15 AM


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