Hi,
When a modal dialog is shown in my application one cannot destroy the application using the taskbar menu command. To double check the issue I modified the wxTaskBarIcon Sample to show a wxMessageBox on the Dialog, the problem still occurs.
The source is attached.
Thanks,
Chris
wxTaskBarIcon: Can't exit application if dialog is shown Topic is solved
-
- Earned some good credits
- Posts: 125
- Joined: Wed Mar 05, 2008 3:30 pm
wxTaskBarIcon: Can't exit application if dialog is shown
- Attachments
-
- tbtest.h
- (1.6 KiB) Downloaded 77 times
-
- tbtest.cpp
- (5.22 KiB) Downloaded 73 times
Chris
Well, this makes sense to me. The main goal of a modal dialog is to show something that the user cannot overlook. If you want the app to still quit, you probably want a non-modal dialog
Alternatively, also look at :
http://docs.wxwidgets.org/stable/wx_wxt ... entappexit
Though I'm not sure if it's considered for modal stuff.
Alternatively, also look at :
http://docs.wxwidgets.org/stable/wx_wxt ... entappexit
Though I'm not sure if it's considered for modal stuff.
"Keyboard not detected. Press F1 to continue"
-- Windows
-- Windows
-
- Earned some good credits
- Posts: 125
- Joined: Wed Mar 05, 2008 3:30 pm
-
- Earned some good credits
- Posts: 125
- Joined: Wed Mar 05, 2008 3:30 pm
-
- Earned some good credits
- Posts: 110
- Joined: Fri Mar 31, 2006 6:05 am
here may workchris_bern wrote:Or you have a better idea?
Code: Select all
wxProcess::Kill(::wxGetProcessId(),wxSIGKILL);