You can only have one MenuClicked event. You need to do all the work in that one event. And if statements without {} only work for the next line. So do this
code:
function OnWndTestEvent_CtrlClicked(Wnd, ControlId)
{
if(ControlId == "BtnOK"){ Wnd.Close(1); }
}
function OnEvent_MenuClicked(IdClicked)
{
if (IdClicked == "MnuAbout") var Wnd = MsgPlus.CreateWnd("Window.xml", "WndTest");
else if (IdClicked =="MnuToast") {
var Message = "Hello";
MsgPlus.DisplayToast("", Message);
}
}
Btw you also wrote ass instead of as.