code:
function OnGetScriptMenu(Location)
{
var myMenu = "<ScriptMenu>";
myMenu += "<MenuEntry Id=\"mnuNew\">New</MenuEntry>";
myMenu += "<Separator/>";
myMenu += "<MenuEntry Id=\"mnuAbout\">About...</MenuEntry>";
myMenu += "</ScriptMenu>";
return myMenu;
}
function OnEvent_MenuClicked(MenuItemId, Location, OriginWind)
{
if (MenuItemId == "mnuNew") {
WndNew = MsgPlus.CreateWnd("New.xml", "mnuNew");
} else if (MenuItemId == "mnuAbout") {
WndAbout = MsgPlus.CreateWnd("About.xml", "mnuAbout");
}
that's some code I've got to make a menu (for a script that I'm probably going to need more help on once I get my head around exactly what i'm doing!)
However I can't now get the windows to show.
The menus are created properly, there's no errors in the debug window, the xml files load successfully in the tester (and I've tried substituting one for a menu window from another script which works)
I'm at a complete loss