What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Pass object to a Wnd

Pass object to a Wnd
Author: Message:
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
O.P. RE: RE: Pass object to a Wnd
Exactly, but you could also use:
code:
function createWindow(){
          var WndTest = MsgPlus.CreateWnd("interface.xml", "WndTest");
          WndTest.CustomProperty = function (x,y) { return x*y }
}

function OnWndTestEvent_CtrlClicked(PlusWnd, ControlId){
         Debug.Trace(PlusWnd.CustomProperty(2, 5));
}

Or
code:
function createWindow(){
          var WndTest = MsgPlus.CreateWnd("interface.xml", "WndTest");
          WndTest.CustomProperty = MyObject { x:3; y:4 }
}

function OnWndTestEvent_CtrlClicked(PlusWnd, ControlId){
         Debug.Trace(PlusWnd.CustomProperty.x);
}

My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
08-13-2006 06:47 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Pass object to a Wnd - by Shondoit on 08-11-2006 at 01:56 PM
RE: Pass object to a Wnd - by -dt- on 08-11-2006 at 02:09 PM
RE: Pass object to a Wnd - by Shondoit on 08-11-2006 at 02:12 PM
RE: Pass object to a Wnd - by -dt- on 08-11-2006 at 02:16 PM
RE: Pass object to a Wnd - by CookieRevised on 08-11-2006 at 06:10 PM
RE: Pass object to a Wnd - by Shondoit on 08-11-2006 at 10:58 PM
RE: Pass object to a Wnd - by cooldude_i06 on 08-12-2006 at 05:40 AM
RE: RE: Pass object to a Wnd - by CookieRevised on 08-13-2006 at 09:28 AM
RE: Pass object to a Wnd - by Shondoit on 08-13-2006 at 12:46 PM
RE: Pass object to a Wnd - by CookieRevised on 08-13-2006 at 06:10 PM
RE: Pass object to a Wnd - by Shondoit on 08-13-2006 at 06:25 PM
RE: Pass object to a Wnd - by cooldude_i06 on 08-13-2006 at 06:44 PM
RE: RE: Pass object to a Wnd - by Shondoit on 08-13-2006 at 06:47 PM
RE: Pass object to a Wnd - by cooldude_i06 on 08-13-2006 at 06:54 PM
RE: RE: Pass object to a Wnd - by CookieRevised on 08-13-2006 at 10:27 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