What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » No Function calls for child windows being made on debug window

No Function calls for child windows being made on debug window
Author: Message:
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. No Function calls for child windows being made on debug window
I'm not sure if its something I'm doing wrong or what, but none of the controls on child windows are generating function calls on the debug window for YASS as I'm trying to create it.

Window declarations:
code:
    wnd = MsgPlus.CreateWnd('yass_gui_imgedit.xml', 'WndImageEdit', 1);
    wnd.Button_SetCheckState('RadGeneral', true);
    cwnd_General = MsgPlus.CreateChildWnd(wnd, 'yass_gui_imgedit.xml', 'WndimageEdit.General', 130, 60, true);
    cwnd_Background = MsgPlus.CreateChildWnd(wnd, 'yass_gui_imgedit.xml', 'WndimageEdit.Background', 130, 60, false);
    cwnd_DP = MsgPlus.CreateChildWnd(wnd, 'yass_gui_imgedit.xml', 'WndimageEdit.DP', 130, 60, false);
    cwnd_StatusImg = MsgPlus.CreateChildWnd(wnd, 'yass_gui_imgedit.xml', 'WndimageEdit.StatusImg', 130, 60, false);
    cwnd_StatusText = MsgPlus.CreateChildWnd(wnd, 'yass_gui_imgedit.xml', 'WndimageEdit.StatusText', 130, 60, false);
    cwnd_Nick = MsgPlus.CreateChildWnd(wnd, 'yass_gui_imgedit.xml', 'WndimageEdit.Nick', 130, 60, false);
    cwnd_PSM = MsgPlus.CreateChildWnd(wnd, 'yass_gui_imgedit.xml', 'WndimageEdit.PSM', 130, 60, false);
    cwnd_PSMMedia = MsgPlus.CreateChildWnd(wnd, 'yass_gui_imgedit.xml', 'WndimageEdit.PSMMedia', 130, 60, false);
    cwnd_Time = MsgPlus.CreateChildWnd(wnd, 'yass_gui_imgedit.xml', 'WndimageEdit.Time', 130, 60, false);
trying to call a function:
code:
function Oncwnd_BackgroundEvent_CtrlClicked(Wnd, ControlId){
    Debug.Trace('ctrl clicked: '+ControlId);
    if(ControlId == 'btnBgColour')
        LoadColourPicker(Wnd, ControlId)
}


function Oncwnd_BackgroundEvent_EditTextChanged(Wnd, ControlId){
    Debug.Trace(Wnd + ControlId);
}
when clicking a button or editing a textbox, no function call is listed in the debug window, nor is any trace text outputted. I'm thinking this must be something I'm doing, as I doubt something this major was left out out 4.50.

whats going on here?

This post was edited on 12-09-2007 at 07:02 PM by MeEtc.
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
12-09-2007 06:49 PM
Profile PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: No Function calls for child windows being made on debug window
You should use the window ID, not the variable name:

code:
function OnWndimageEdit.BackgroundEvent_CtrlClicked
function OnWndimageEdit.BackgroundEvent_EditTextChanged

However I doubt this will work, as JScript uses the dot for objects and properties (e.g. Debug.Trace). Therefore I highly recommend you to remove the dot in the name to assure the correct working of your script. ;)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-09-2007 07:12 PM
Profile E-Mail PM Web Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. RE: No Function calls for child windows being made on debug window
thanks, i just found out that for myself. I had to change the dots to underscores. it works fine now.

Someone might want to update the scripting docs and xsd to say dots can't be added to the name of a WindowId
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
12-09-2007 07:15 PM
Profile PM Web Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: RE: No Function calls for child windows being made on debug window
quote:
Originally posted by MeEtc

Someone might want to update the scripting docs and xsd to say dots can't be added to the name of a WindowId
quote:
Originally posted by Schema Documentation
No spaces allowed. For scripts windows, punctuation is replaced by underscores.


:P
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
12-09-2007 07:24 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: No Function calls for child windows being made on debug window
quote:
Originally posted by MeEtc
Someone might want to update the scripting docs and xsd to say dots can't be added to the name of a WindowId
Well, it sounds very normal to me not to use dots. Anyway, the documentation says:
quote:
Originally posted by Window > Id
No spaces allowed. For scripts windows, punctuation is replaced by underscores.
so maybe it'll work if you use an underscore only in your script and keep using the dot in your XML? :P


Ugh, beaten by a fat free chicken. :grin:

This post was edited on 12-09-2007 at 07:26 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-09-2007 07:25 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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