quote:
Originally posted by matty
Is your variable Wnd globally defined?
It is, but I have tried it without, and it still won't do anything.
quote:
Originally posted by matty
And why not do this...js code:
// if a browser button is clicked
function OnWndBrowserEvent_CtrlClicked(objWnd, strControlId)
{
switch(strControlId)
{
case "BtnSearch": // if the search button is clicked
>>> SearchWnd = MsgPlus.CreateChildWnd(objWnd, "Windows.xml", "WndSearch", 100, 100);<<<
// creates a child window (parent = 'Wnd')
break;
}
}
Doesn't make any difference...