Re: Exit when a signal is recieved
Сергей Коныгин <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Yes, it works! Thanks.
void OnSignal( int sig );
class MyApp : public wxAppConsole
{
bool OnInit()
{
SetSignalHandler( wxSIGINT, OnSignal );
...
}
};
void OnSignal( int sig )
{
GetMyApp()->CallAfter( &MyApp::ExitMainLoop );
}
вторник, 16 июля 2024 г. в 20:12:30 UTC+4, Gunter Königsmann:
> I wonder if CallAfter() can be your friend here...
>
>
--
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/602b9879-5edb-4efe-bc12-bf0c0a7ef535n%40googlegroups.com.