Page 1 of 1

How to cancel a wxMessageBox with a Esc key?

Posted: Sat May 16, 2009 5:51 am
by weworld
Hi,
I use "wxICON_INFORMATION | wxYES_NO" style, and I have this problem, and i need Help! :-)
Thank you!

Posted: Sat May 16, 2009 8:20 am
by van_user
This is because there are no button with wxID_CANCEL.
Check wxDialog::SetEscapeId.