wxDialog and ESC key

Vadim Zeitlin vadim at wxwindows.org
Fri Aug 4 06:58:23 PDT 2006


On 3 Aug 2006 20:08:50 -0700 bernard <bernard.xiong at gmail.com> wrote:

b> In windows, I wrote a dialog which is inherited from wxDialog:
b> In this dialog, I put some wxTextCtrl, and show it in modeless. But, I
b> want to this dialog can be closed when input ESC key. How shall I do?

 Create a button with either wxID_CANCEL or wxID_OK identifier which closes
the dialog.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list