Ah, I am using an outdated qooxdoo package (0.6.1).  I'll upgrade & try
again.



I am having the same problem Edmond has described.  I'm trying to capture
the event of the window being closed, not minimized.  I'm capturing using
this event using this code:

w6.addEventListener(qx.constant.Event.DISAPPEAR, function(e) {
        alert("disappear event fired");
        qx.ui.core.ClientDocument.getInstance().dispatchEvent(new
qx.event.type.DataEvent(" dispose_task_w6"));
});

I'm trying to capture this event so I can remove the corresponding
taskbarbutton from my homegrown taskbar.

The DISAPPEAR event is triggered upon close or minimize, and I haven't been
able to find a mechanism that captures just the closing of the window.  I've
also tried the following events:  UNLOAD, BEFOREUNLOAD, but these are not
triggered upon close or minimize.



Edmond Lee wrote:
> 
> Hi,folks
> 
> Can anyone tell me how can i listen the event of the window componenet
> close event?
> 
> And now I use the "disappear" event, but  I found when I minimize the
> window, the "disappear" event also be notify.
> 
> Thks
> Edmond Lee
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-can-i-listen-the-event-of-the-window-componenet-close-event--tf2458328.html#a8374243
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to