How to cancel a wxMessageBox with a Esc key? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
weworld
Earned a small fee
Earned a small fee
Posts: 20
Joined: Tue Mar 25, 2008 3:39 pm

How to cancel a wxMessageBox with a Esc key?

Post by weworld » Sat May 16, 2009 5:51 am

Hi,
I use "wxICON_INFORMATION | wxYES_NO" style, and I have this problem, and i need Help! :-)
Thank you!

van_user
Experienced Solver
Experienced Solver
Posts: 55
Joined: Wed Jun 11, 2008 9:28 pm
Location: UA

Post by van_user » Sat May 16, 2009 8:20 am

This is because there are no button with wxID_CANCEL.
Check wxDialog::SetEscapeId.

Post Reply