You can set it in the constructor
win = new Window({onClose: your_callback})BTW, if you use an observer you do not have to implement all functions, just any callback you need Seb On Feb 28, 2007, at 11:54 AM, Tokeiito wrote: > Hello, > > I need to do some task when user is closing window. What is the > best way to add onDestroy ability without writing full addObserver, > 'cose I've understand if i want to do some task, i need to define > in addObserver all of thees functions onDestroy onStartResize > onStartMove onResize onMove onEndResize onEndMove onFocus > onBeforeShow onShow onHide onMinimize onMaximize onClose > > _______________________________________________ > Javawin mailing list > [email protected] > http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com _______________________________________________ Javawin mailing list [email protected] http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
