What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HELP - Child Windows!

HELP - Child Windows!
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: HELP - Child Windows!
Well, it still doesn't appear to be working.  Am I still missing something?
js code:
// if a menu item is clicked
function OnEvent_MenuClicked(sMenuId, nLocation, iOriginWnd)
{
    if(sMenuId == "start")
    {
        if (OpenWnd)  // checks for another instance of the browser
        {
            Debug.Trace("> Detected OpenWnd: " + OpenWnd)
            Debug.Trace("> No more windows allowed!")
            MsgPlus.CreateWnd("Windows.xml", "WndMaximum", 0)
            // creates a warning alert window
        }
        else
        {
            Debug.Trace("> Detected OpenWnd: " + OpenWnd);
            Debug.Trace("> Window allowed!");
            Wnd = MsgPlus.CreateWnd("Windows.xml", "WndBrowser", 0);
            // creates a browser window (variable 'Wnd')
            OpenWnd = true;
            Browser = Wnd.Browser_GetInterface("Browser");
            Browser.GoHome();
        }
    }
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(Wnd, "Windows.xml", "WndSearch", 100, 100);
            // creates a child window (parent = 'Wnd')
            break;
    }
}
I have also tried putting your code in, exactly how it was, but only the main window appeared - the child window just didn't appear...

This post was edited on 02-23-2009 at 07:47 PM by whiz.
02-23-2009 07:46 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
HELP - Child Windows! - by whiz on 02-22-2009 at 04:50 PM
RE: HELP - Child Windows! - by Matti on 02-22-2009 at 05:21 PM
RE: HELP - Child Windows! - by whiz on 02-23-2009 at 07:27 PM
RE: HELP - Child Windows! - by matty on 02-23-2009 at 07:28 PM
RE: HELP - Child Windows! - by whiz on 02-23-2009 at 07:46 PM
RE: HELP - Child Windows! - by matty on 02-23-2009 at 07:56 PM
RE: RE: HELP - Child Windows! - by whiz on 02-23-2009 at 08:04 PM
RE: HELP - Child Windows! - by matty on 02-23-2009 at 08:08 PM
RE: HELP - Child Windows! - by whiz on 02-23-2009 at 08:21 PM
RE: HELP - Child Windows! - by matty on 02-23-2009 at 08:29 PM
RE: HELP - Child Windows! - by whiz on 02-23-2009 at 08:33 PM
RE: HELP - Child Windows! - by matty on 02-23-2009 at 08:52 PM
RE: HELP - Child Windows! - by Matti on 02-24-2009 at 08:45 AM
RE: HELP - Child Windows! - by whiz on 02-24-2009 at 08:09 PM
RE: HELP - Child Windows! - by Matti on 02-24-2009 at 08:11 PM
RE: HELP - Child Windows! - by whiz on 02-24-2009 at 08:18 PM
RE: HELP - Child Windows! - by matty on 02-24-2009 at 08:31 PM
RE: HELP - Child Windows! - by whiz on 02-24-2009 at 08:41 PM
RE: HELP - Child Windows! - by matty on 02-24-2009 at 09:00 PM
RE: HELP - Child Windows! - by whiz on 02-25-2009 at 05:15 PM
RE: RE: HELP - Child Windows! - by pollolibredegrasa on 02-25-2009 at 05:48 PM
RE: HELP - Child Windows! - by whiz on 02-25-2009 at 06:51 PM
RE: HELP - Child Windows! - by matty on 02-25-2009 at 08:11 PM
RE: HELP - Child Windows! - by whiz on 02-25-2009 at 08:30 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On