Re: Running Code off the X
Andre F <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <CANdLyG0+RTnasYnhUFOtbtWCAPNNyXSC1or_7vKeuwzbVBOH0w@mail.gmail.com> |
Thank you! Regards, On Fri, Sep 8, 2023 at 6:50 AM Vadim Zeitlin <[email protected]> wrote: > 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/ > -- 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/CANdLyG0%2BRTnasYnhUFOtbtWCAPNNyXSC1or_7vKeuwzbVBOH0w%40mail.gmail.com.