Hi,
I have 2 buttons on a Wx::Dialog window, and I want one of them to be
pressed when I hit enter on a text field, and the other one to be pressed
when I press the escape key.
I have read on the manual page of Wx::Dialog that I can use wxOK, or
wxID_OK, wxCANCEL, or wxID_CANCEL (I didn't understand which of them) in
order to do this, but it doesn't seem to work.
I have also tried to use SetAffirmativeId() and SetEscapeId() but after
doing that, I couldn't close the dialog with the close button even if I
press it with the space bar.
So I am sure I am doing something wrong. Can you tell me the right way to do
what I want?
Thank you.
Octavian
- Setting the Ok and Cancel key defaults Octavian Rasnita
-