Re: Capture ESC Key for Dialog in wxEuphoria
- Posted by ghaberek (admin) Jun 19, 2012
- 1568 views
euphoric said...
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?
It still works fine for me, unless I'm doing something differently. Can you post a full source example of this?
If I can replicate the problem, I can try to work backwards and figure out what's causing the issue.
-Greg