RE: Running Code off the X

Steve Barnes <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <DU0P194MB1819AC9BC7E7B95DB99B50739BEDA@DU0P194MB1819.EURP194.PROD.OUTLOOK.COM>
Hi Andre,

The X is not a menu item so menu handlers are not called - you could try binding and event handler wxApp::OnExit instead - it might also be worth also binding event handlers for wxApp::OnEndSession when you log off without closing and wxApp::OnFatalException.

Hope that helps,
Steve

From: [email protected] <[email protected]> On Behalf Of Andre F
Sent: Friday, September 8, 2023 5:31 AM
To: [email protected]
Subject: Running Code off the X

Hello,

I would like to be able to run code after clicking the X at the top right corner.  I thought I could run it off the menu's OnQuit, but that doesn't seem to apply to the X.

Is there a way to do this?

Regards,

--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>.
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/CANdLyG3TNRjC3L9C-zjS3UvxLfHLgTh_G6BPa%3DpjzAFSMpXudQ%40mail.gmail.com<https://groups.google.com/d/msgid/wx-users/CANdLyG3TNRjC3L9C-zjS3UvxLfHLgTh_G6BPa%3DpjzAFSMpXudQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/DU0P194MB1819AC9BC7E7B95DB99B50739BEDA%40DU0P194MB1819.EURP194.PROD.OUTLOOK.COM.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.