This is the code I made to make the Close buttons work:
code:
function OnWndTestEvent_CtrlClicked(Wnd, ControlId)
{
if(ControlId == "BtnClose")
Wnd.Close(1);
}
I've made 2 XML files, one for each window, and both are EXACTLY the same (for testing purposes). However, the script to Close the windows that pasted above only works for one of the windows.
Do you know why this might be?