Shoutbox

MsgPlus.CreateWnd problem. - 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: MsgPlus.CreateWnd problem. (/showthread.php?tid=65717)

MsgPlus.CreateWnd problem. by Buzz44 on 09-02-2006 at 04:45 AM

I'm trying to make a GUI but I can't get MsgPlus.CreateWnd to work. I copied the example and instructions in the help file exactly but still no go :(. Anyone have a reason why the window might not be appearing?

Thanks.


RE: MsgPlus.CreateWnd problem. by Felu on 09-02-2006 at 04:50 AM

Try something like

code:
Wnd = MsgPlus.CreateWnd("FileName", "Window Name")
and make sure that the window is perfect and there is nothing wrong in it, if something goes wrong in the xml you surely wont see the window [Image: msn_happy.gif].
RE: MsgPlus.CreateWnd problem. by Buzz44 on 09-02-2006 at 04:56 AM

I'm using...

code:
Wnd = MsgPlus.CreateWnd("InterfaceTest.xml", "WndTest")
with...
code:
<Interfaces xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    <Window Id="WndTest" Version="1">        <Attributes>            <Caption>Test Window</Caption>
        </Attributes>
        <TitleBar>
            <Title><Text>Hello!</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>

Nothing still @@.

RE: MsgPlus.CreateWnd problem. by Silentdragon on 09-02-2006 at 04:56 AM

Also make sure the xml file is saved in Unicode(16).


RE: MsgPlus.CreateWnd problem. by Buzz44 on 09-02-2006 at 04:58 AM

Thanks Silentdragon! That did the trick. I was creating a text file, editting it, then changing the filename/extension ;).