Re: Capture ESC Key for Dialog in wxEuphoria
- Posted by euphoric (admin) Jun 20, 2012
- 1519 views
mattlewis said...
Adding a wxID_CANCEL button might keep the automatic cancel behavior that (I think) you're looking for.
I just don't want to confuse the user with an "OK" button AND a "Cancel" button on an "about" dialog window.
I tried setting the button to wxID_CANCEL with a label of "OK," and that worked for this example.
constant testbttn = create( wxButton, {dlgDialog,wxID_CANCEL,"OK",-1,-1,-1,-1} )
It's not yet working with my XRC setup...