quote:
Originally posted by whiz
How come?
You are passing a string "WndBrowser" as first parameter, where the script documentation clearly says:
quote:
Parent: [object] Existing PlusWnd object previously created with CreateWnd.
So, a valid example would be:
js code:
//The parent window
var pBrowser = MsgPlus.CreateWnd("Windows.xml", "WndBrowser");
//The child window
var pSearch = MsgPlus.CreateChildWnd(pBrowser, "Windows.xml", "WndSearch", 100, 100);
As you can see, we're passing pBrowser (the created PlusWnd object) as first parameter. The reason why Plus! works this way is since you could make multiple instances of the same interface XML definition.