From: Steve Tuckner Date: 2002-05-04T06:36:52+09:00 Subject: [FXRuby] - How to capture close on the main window This is a multi-part message in MIME format. ------=_NextPart_000_007C_01C1F2C0.ABCAC5C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit If my main window class is defined as follows class MyWindow < FXMainWindow def create super show(PLACEMENT_SCREEN) end end I tried defining def onDestroy end and def onCmdDestroy end and neither got called. Steve Tuckner ------=_NextPart_000_007C_01C1F2C0.ABCAC5C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
If my main = window class is=20 defined as follows
 
class = MyWindow <=20 FXMainWindow
   =20 def create
       =20 super
       =20 show(PLACEMENT_SCREEN)
    end
end
I = tried defining=20
    def onDestroy
    end
 
and=20
    def onCmdDestroy
    end
 
and = neither got=20 called.
 
Steve = Tuckner
 
 
   
= ------=_NextPart_000_007C_01C1F2C0.ABCAC5C0--