Hey guys,
First off I have to apologize for this stupid question and I hope I don't get yelled at too badly, but I just can't get it working.
I am attempting to do the 'Window Test' tutorial in the scripting documentation and can't seem to get the CreateWnd method to work.
Here is the code:
Window Test.js
code:
function OnEvent_Initialize(MessengerStart) {
var Wnd = MsgPlus.CreateWnd("InterfaceTest.xml", "WndTest");
}
InterfaceTest.xml
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>
The files are in the same directory inside c:/../../Messenger Plus! Live/Scripts/Window Test/
Debug window says:
Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize
... and no window
I have MessengerPlus! Live 4.0.0.235 with MSN 8.0.0792.00
Any idea's?