Look i got this at now:
code:
var WndExample;
var WndChildExample;
function OnGetScriptMenu(nLocation){
var sMenu = "<ScriptMenu>";
sMenu += " <MenuEntry Id=\"mnuExample\">Example</MenuEntry>";
sMenu += "</ScriptMenu>";
return sMenu;
}
function OnEvent_MenuClicked(sMenuId, nLocation, ChatWnd){
if(sMenuId == "mnuExample"){
/*
Open up header
*/
WindowOpend [ 0 ] = MsgPlus.CreateWnd( 'gui.xmll', 'Header' );
/*
Open inside parent, child SideBar
*/
WindowOpend [ 1 ] = MsgPlus.CreateChildWnd( WindowOpend [ 0 ], 'gui.xml', 'SideBar', 9, 94, true );
/*
Open inside parent, child Main
*/
WindowOpend [ 2 ] = MsgPlus.CreateChildWnd( WindowOpend [ 0 ], 'gui.xml', 'Main', 180, 113, true );
/*
Open inside parent, child Main
*/
WindowOpend [ 3 ] = MsgPlus.CreateChildWnd( WindowOpend [ 0 ], 'gui.xml', 'Footer', 0, 0, true );
}
}
It is a part of a Robot script..
This xml file is with it:
http://www.webso.nl/msn/gui.xml (Just look in the source
)
When i want to open the Example file, nothing happens