I think you want the on-close and can-close? methods of the frame%. Robby
On Thu, May 26, 2011 at 4:47 AM, Marijn <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I would like to call some code when a user clicks the X in the upper > left/right corner (close window button) or presses Alt-F4, but I didn't > find anything about it in the docs. Any help? > > Thanks, > > Marijn > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.17 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk3eIccACgkQp/VmCx0OL2w0BQCfUxdEOIm05FIOw0q0jDXwNUlR > LzoAoLSLlVadYJknDkvRpvD7Eh2WQUYH > =a2K4 > -----END PGP SIGNATURE----- > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users > _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

