Shoutbox

MsgPlus.CreateChildWnd doesn't seem to work.. - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: MsgPlus.CreateChildWnd doesn't seem to work.. (/showthread.php?tid=78094)

MsgPlus.CreateChildWnd doesn't seem to work.. by roflmao456 on 10-09-2007 at 09:22 PM

i have tried to use this in my script, but the window won't show up (nothing in debug).

maybe if there is an API function?


edit: also another  question: how do i use the <Groups> thing inside LstView controls? :P


RE: MsgPlus.CreateChildWnd doesn't seem to work.. by NanaFreak on 10-09-2007 at 09:28 PM

what is your code?


RE: MsgPlus.CreateChildWnd doesn't seem to work.. by roflmao456 on 10-09-2007 at 09:32 PM

code:
var Wnd = MsgPlus.CreateWnd("windows.xml","mainWnd");
code:
MsgPlus.CreateChildWnd(Wnd, "windows.xml", "dlgMode", 50, 50);


nothing pops up.. (createchildwnd is in a CtrlClicked function)
RE: MsgPlus.CreateChildWnd doesn't seem to work.. by markee on 10-10-2007 at 12:22 AM

By the looks of your JScript there is nothing wrong.  I would probably take a closer look at your XML, it is highly likely there is an error in the child window and plus! won't even try to open it.


RE: MsgPlus.CreateChildWnd doesn't seem to work.. by roflmao456 on 10-10-2007 at 12:27 AM

it's just a normal window:

code:
<Window Id="dlgMode" blahblahblah

no <ChildTmpl/> or w.e

i can open it fine using createwnd
RE: MsgPlus.CreateChildWnd doesn't seem to work.. by markee on 10-10-2007 at 12:29 AM

That's your problem, it must use the child template to e able to be used as a child window.