quote:
Originally posted by matty
Worked fine when I ran it here.
(Note I was on a mobile [my blackberry] when I was first looking into it)
js code:
function OnWndTestEvent_CtrlClicked(Wnd, ControlId)
{
if (ControlId == "BtnClose")
Wnd.Close(1);
if (ControlId == "BtnMoreInfo")
MsgPlus.CreateWnd ("SysInfo.xml", "SysInfo");
}
Also note this code will never get hit because WndTest doesn't exist. Your windows are called SysHelp and SysInfo.
Also a trick is to call your buttons BtnCancel if you want to close a window and Plus! will automatically interpret that as to close the window.
Ah, it worked for me but only after about 10 seconds