Re: Capture ESC Key for Dialog in wxEuphoria

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu