What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Very simple script - very simple problem (I hope)

Very simple script - very simple problem (I hope)
Author: Message:
Oceanor
New Member
*


Posts: 10
– / Male / Flag
Joined: Feb 2009
O.P. RE: Very simple script - very simple problem (I hope)
code:
<Controls>
    <Control xsi:type="StaticControl" Id="Title">
        <Position Top="8" Width="350" Left="110" Height="40"/>
        <Font><Size>12</Size></Font>
        <Caption>Mio Profilo</Caption>
    </Control>
   
    <!-- Frase n1 -->
    <Control xsi:type="StaticControl" Id="Nome">
        <Position Top="25" Width="100" Left="5" Height="10"/>
        <Caption>Nome: </Caption>
        <Font><Bold>true</Bold></Font>
    </Control>

    <Control xsi:type="EditControl" Id="NuovoNome">
        <Position Top="25" Width="170" Left="70"/>
        <Caption></Caption>
        <Font><Bold>True</Bold></Font>
    </Control>

    <Control xsi:type="ButtonControl" Id="BtnConfermaNome">
        <Position Top="25" Left="250" Width="40"/>
        <Caption>Conferma</Caption>
    </Control>
   
    <!-- Frase n2 -->
    <Control xsi:type="StaticControl" Id="Frase">
        <Position Top="40" Width="100" Left="5" Height="10"/>
        <Caption>Cognome: </Caption>
        <Font><Bold>true</Bold></Font>
    </Control>

    <Control xsi:type="EditControl" Id="NuovaFrase">
        <Position Top="40" Width="170" Left="70"/>
        <Caption></Caption>
        <Font><Bold>True</Bold></Font>
    </Control>

    <Control xsi:type="ButtonControl" Id="BtnConfermaFrase">
        <Position Top="40" Left="250" Width="40"/>
        <Caption>Conferma</Caption>
    </Control>

   
   
   
   
    <Control xsi:type="ButtonControl" Id="BtnAbout">
        <Position Top="220" Left="45" Width="60"/>
        <Caption>Informazioni</Caption>
    </Control>

    <Control xsi:type="ButtonControl" Id="BtnCancel">
        <Position Top="220" Left="185" Width="60"/>
        <Caption>Chiudi finestra</Caption>
    </Control>

</Controls>


This is my XML part (just 2 lines + 2 buttons, close window and information. Here's the JS part:

code:
function OnOptionsEvent_CtrlClicked(Wnd, ControlId)
{
    if(ControlId == "BtnAbout")
    {
        var Wnd = MsgPlus.CreateWnd("gui.xml", "About");
    }
   
    if(ControlId == "BtnConfermaNome")
    {
        Wnd.Close(1);
    }
   
    if(ControlId == "BtnCancel")
    {
        Wnd.Close(1);
    }
}


When I click the BtnCancel button, the window is closed, but when i click BtnConfermaNome, nothing happens.

Obviusly, for now most buttons are useless, but i'm interested in understanding why nothing happen with some names and works with BtnCancel..

:(:(:(:(:(:(:(:(

This post was edited on 02-26-2009 at 05:41 PM by Oceanor.
02-26-2009 05:40 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Very simple script - very simple problem (I hope) - by Oceanor on 02-25-2009 at 01:41 PM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-26-2009 at 11:04 AM
RE: Very simple script - very simple problem (I hope) - by djdannyp on 02-26-2009 at 11:25 AM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-26-2009 at 12:08 PM
RE: RE: Very simple script - very simple problem (I hope) - by djdannyp on 02-26-2009 at 12:17 PM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-26-2009 at 01:20 PM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-26-2009 at 05:40 PM
RE: Very simple script - very simple problem (I hope) - by matty on 02-26-2009 at 06:36 PM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-27-2009 at 12:02 AM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-27-2009 at 10:04 AM
RE: Very simple script - very simple problem (I hope) - by Matti on 02-27-2009 at 10:09 AM
RE: RE: Very simple script - very simple problem (I hope) - by djdannyp on 02-27-2009 at 10:36 AM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-27-2009 at 10:19 AM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-27-2009 at 10:42 AM
RE: Very simple script - very simple problem (I hope) - by djdannyp on 02-27-2009 at 11:03 AM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-27-2009 at 12:34 PM
RE: Very simple script - very simple problem (I hope) - by matty on 02-27-2009 at 02:09 PM


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