Re: Capture ESC Key for Dialog in wxEuphoria
- Posted by euphoric (admin) Jun 19, 2012
- 1628 views
Greg, the addition of a button on your dialog screen prevents ESC from closing the dialog.
Just add
constant testbttn = create( wxButton, {dlgDialog,-1,"OK",-1,-1,-1,-1} )
after
constant dlgDialog = create( wxDialog, {0, -1, "Dialog", -1, -1, 640, 480} )
and the dialog can't be closed with ESC key.
Now what do we do?