Re: Capture ESC Key for Dialog in wxEuphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message
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? smile

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu