I followed the manual and even Copy and Pasted the code and it still will not create a window. I don't know why, it just won't do it no matter what I do.
Script:
code:
function OnEvent_Initialize(MessengerStart)
{
var Wnd = MsgPlus.CreateWnd("InterfaceTest.xml", "WndTest");
}
function OnEvent_Uninitialize(MessengerExit)
{
}
Here's the XML file and yes it's the correct filename
code:
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation="urn:msgplus:interface PlusInterface.xsd">
<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>
I downloaded the manual for MsgPlus yesterday so it should be current. Also, other scripts can display windows, but none of mine will. It processes the script, but anything dealing with Windows will not work.