|  No Function calls for child windows being made on debug window | 
 
| Author: | 
Message: | 
 
MeEtc 
Patchou's look-alike 
     
  
  
In the Shadow Gallery once again
  
Posts: 2191 Reputation: 60 
39 /   /   
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: sharing.png]](http://www.meetcweb.com/files/sharing.png) 
I cannot hear you. There is a banana in my ear.  
 |   
 | 
 
| 12-09-2007 06:49 PM | 
 | 
 
  | 
 
Matti 
Elite Member 
     
  
  
Script Developer and Helper
  
Posts: 1646 Reputation: 39 
33 /   /   
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.    
 |   
 | 
 
| 12-09-2007 07:12 PM | 
 | 
 
  | 
 
MeEtc 
Patchou's look-alike 
     
  
  
In the Shadow Gallery once again
  
Posts: 2191 Reputation: 60 
39 /   /   
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: sharing.png]](http://www.meetcweb.com/files/sharing.png) 
I cannot hear you. There is a banana in my ear.  
 |   
 | 
 
| 12-09-2007 07:15 PM | 
 | 
 
  | 
 
pollolibredegrasa 
Full Member 
   
  
  
formerly fatfreechicken
  
Posts: 483 Reputation: 34 
36 /   /   
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 
 
  Vaccy is my thin twin! ![[Image: chickennana.gif]](http://shoutbox.menthix.net/images/smilies/chickennana.gif)   
 |   
 | 
 
| 12-09-2007 07:24 PM | 
 | 
 
  | 
 
Matti 
Elite Member 
     
  
  
Script Developer and Helper
  
Posts: 1646 Reputation: 39 
33 /   /   
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?   
 Ugh, beaten by a fat free chicken.    
 This post was edited on 12-09-2007 at 07:26 PM by Matti.
 |   
 | 
 
| 12-09-2007 07:25 PM | 
 | 
 
  | 
 
| 
 |  
 
 |