This exact question was raised a little while ago, the answer is no but
there is something you can do and this was the final response by Lothar:

oh you mean closing a qx.ui.window.Window. I can think of two possibilities:

1. Directly attach another eventhandler to the close-button:

yourWindow._closeButton.addEventListener("execute", function(e){
this.info("Who wants to live forever?");
}, this);

2. You could subclass Window and overwrite the _onclosebuttonclick-method,
but make sure you call the superclass' implementation from within your own
implementation.

I'm pretty sure there are even more ways to do it..

cheers,
Lothar


On Jan 28, 2008 10:08 AM, Ralf Sternberg <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I just wonder whether there is a "close" event in qx.ui.window.Window? I
> cannot find it in the API viewer (even with "Inherited" checked) but I
> don't get a warning either when I add an event listener to it (which I do
> get for any other invalid event string). It also seems to be never fired.
> Is this just a leftover from an old qx version or am I missing something?
>
> Thanks, Ralf
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to