What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Global Window-handler possible?

Global Window-handler possible?
Author: Message:
RdeWilde
New Member
*


Posts: 5
Joined: May 2008
O.P. Global Window-handler possible?
Hello,

I'm trying to create a function for handling my windows globally, this means all events should be handover to this function. But now I got this far and took a look at the documentation, I noted there's no global window event? Just with the WindowId in it.

I'd like to use OnWindowEvent_CtrlClicked, where Window stands for all windows. Is there any way to achieve this? Thanks.

Edit: Here's some of the code i'd like to implement.
code:
cWindow = function(oCmds)
{    if (!oCmds) oCmds = {};

    this.__coll = Array();        // Collection windows
    this.__cmds = oCmds;
   
    this.openWindow = function(sFile, sName, sOptions)
    {    if (!this.__coll[sName])
            this.__coll[sName] = MsgPlus.CreateWnd(sFile, sName, sOptions);
           
        // Maybe there's a way to add the handling here?       
    };
   
   
    this.handleWindow = function(sWindow, sCtrlId)
    {    // Handling here
        if (this.__cmds[sWindow][sCtrlId]())
            return true;           
        else
            return false;
    }
   
   
    this.closeWindow = function(sName)
    {    this.__coll[sName] = null;
    };   
}

Calling function:
code:
var oOS;

cOutlookStatus = function(oSetting)
{    this.__register     = new cRegister();
    this.__timer        = new cTimer();
    this.__window        = new cWindow(
    {'__OS_wndCalender':
        {'__OS_btnStatusSave' : function()
            {    MsgPlus.DisplayToast('Made IT!');
            }
        }
    }
    );
   
    with (oSetting)
    {
        this.version    = version || 1.09;       
    }
};
Edit: Spacing is removed? :S

This post was edited on 06-03-2008 at 10:25 AM by RdeWilde.
06-03-2008 10:20 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Global Window-handler possible? - by RdeWilde on 06-03-2008 at 10:20 AM
RE: Global Window-handler possible? - by markee on 06-03-2008 at 10:56 AM
RE: Global Window-handler possible? - by RdeWilde on 06-03-2008 at 11:23 AM
RE: Global Window-handler possible? - by markee on 06-03-2008 at 12:42 PM
RE: Global Window-handler possible? - by RdeWilde on 06-03-2008 at 02:28 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