Hi well i'm just starting out with scripting and i'm having some trouble creating a window. I followed the Scripting documentation but it doesn't seem to be working.
Here's the xml window code (name: saad.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 ClientWidth="170" ClientHeight="45"/>
<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="115" Top="25" Width="50"/> <Caption>Close</Caption>
</Control>
</Controls>
</Window>
</Interfaces>
and here's the script
code:
function OnEvent_Initialize(MessengerStart){
var Wnd = MsgPlus.CreateWnd("saad.xml", "form1");
MsgPlus.DisplayToast("testing","testing...");
}
I placed the xml file in the script directory, but it doesn't work. By the way the toast does show.