I am having some menu troubles with my script, here is my code (only for the menu):
code:
function OnGetScriptMenu (Location)
{
var ScriptMenu = "<ScriptMenu>";
ScriptMenu += "<MenuEntry Id=\"MnuAbout\">About...</MenuEntry>";
ScriptMenu += "</ScriptMenu>";
return ScriptMenu;
}
function OnEvent_MenuClicked ("MnuAbout", Location, OriginWnd)
{
MsgPlus.CreateWnd('Window.xml', 'About');
}
When activating the script it says i have an error if i remove the:
code:
function OnEvent_MenuClicked ("MnuAbout", Location, OriginWnd)
{
MsgPlus.CreateWnd('Window.xml', 'About');
}
It works again and if i just rename the "MnuAbout" to MenuItemId it works again. I just want the about button to work.