Shoutbox

Windows help - 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: Windows help (/showthread.php?tid=70146)

Windows help by Wakaki on 01-01-2007 at 03:56 PM

help i have a script that says hello and goodbye when you log in or log out :

code:
function OnEvent_Signin(Email)
{
     var Message = "Hello nice to see you again!";
     MsgPlus.DisplayToast("Hello", Message);

}
function OnEvent_Signout(Email)
{
    var Message = "Goodbye hope to see you again!";
     MsgPlus.DisplayToast("Goodbye", Message);
}




and i want to make a window so were they can adjust there own message and sofar with al that documentation and so this is al i have made:
code:
<?xml version="1.0" encoding="UTF-16"?>
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd">

<GlobalColors>
    <GlobalColor Id="green">
        <Red>80</Red>
        <Green>200</Green>
        <Blue>65</Blue>
        <Alpha>220</Alpha>
    </GlobalColor>

    <GlobalColor Id="bg">
        <BaseColor>
            <Saturation>2</Saturation>
            <Brightness>0.6</Brightness>
            <Transparency>82</Transparency>
        </BaseColor>
    </GlobalColor>
</GlobalColors>


<Window Id="WindowSetMsg" Version="1">
    <Attributes>
           <Caption>Windows Live Messenger</Caption>
        </Attributes>
        <TitleBar>
            <Title><Text></Text></Title>
        </TitleBar>
        <Position Width="180" Height="75"/>
        <DialogTmpl/>
        <Controls>
            <Control xsi:type="StaticControl" Id="LblTop">
                <Position Left="10" Top="10" Width="150"/>
                <Caption>Hello world!</Caption>
            </Control>
            <Control xsi:type="ButtonControl" Id="BtnClose">
                <Position Left="112" Top="25" Width="50"/>                <Caption>Close</Caption>
            </Control>
        </Controls>

</Window>

</Interfaces>

and of course a function that works for the close button but i want to make 2 tabs and in those tab i want to make textboxes and so on so please help me a bit

or maybe there somebody can help me making the window or something
RE: Windows help by phalanxii on 01-02-2007 at 11:51 AM

Well for a start, to get your close button working, you can change the button's ID to BtnCancel:

code:
<Control xsi:type="ButtonControl" Id="BtnCancel">
   <Position Left="112" Top="25" Width="50"/>
   <Caption>Close</Caption>
</Control>
As a handy hint for anyone developing interface windows, Plus! automatically closes a window when a button with ID BtnCancel is clicked.

As for your other requests, I'd be happy to help you, but I'm not quite sure what you're after. Could you be a little more specific? (What do you mean by "tabs" and "textboxes"?)