Hello,

The line that you show looks OK (I take it that addListener has a typo when
typing the email).

When you say Window, you do mean the browser window, or a Qooxdoo window?

Try putting an 'alert(MainWindow)' around this line for an independent
check. Is the MainWindow created in the same function as this listener, or
passed in as an argument?

I think the best thing to do is include a few more lines of code to see how
the window is created and subsequently used.

Cheers,

Nick

On 24 September 2010 14:21, stevenv <[email protected]> wrote:

>
> Hi
>
> I created a file that contain my toolbar. I have close button that should
> hide the window containing the toolbar and table.
>
> I have tried the following:
>
> button.addListerner('execute', MainWindow.myEvent, MainWindow); - firebug
> indicates that MainWindow is undefined.
>
> I also tried getLayoutParent and will find the window but I'm sure this is
> not the correct way.
>
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to