O.P. [Quest]My Window cannot display. why?
Hello guys!
i'm a new one. when i tried something about window of messenger plus said in the Scripting Documentation, i have done what it said that creat a new script named Window Test, and replace the Initialize event by this: function OnEvent_Initialize(MessengerStart)
{
var Wnd = MsgPlus.CreateWnd("InterfaceTest.xml", "WndTest");
}
and also creat a xml file with this:
<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>
and of course i saved it in my script's folder named Window Test, BUT it doesn't work. However everything seems all right in my debug window, and it said the script loaded ready. So why? how can it do like this? puzzling....
|