Re: Running Code off the X
Vadim Zeitlin <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 7 Sep 2023 23:30:45 -0500 Andre F wrote:
AF> I would like to be able to run code after clicking the X at the top right
AF> corner. I thought I could run it off the menu's OnQuit, but that doesn't
AF> seem to apply to the X.
AF>
AF> Is there a way to do this?
Yes, you need to handle wxEVT_CLOSE_WINDOW event.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZPsKhwAKCRAG6kHeT2we hufTAJ9Iv0COTvPjnpch/Gw+EdO/CPYoyACfYbvGUd46fdCP5Ii1blq2HXb4t+Y= =HWao -----END PGP SIGNATURE-----