pressing Enter when a wxButton has the focus

Eugen Stoianovici eugen.stoianovici at gmail.com
Thu Oct 5 03:37:46 PDT 2006


cai wrote:
> Hi list,
>
> when pressing Enter when a wxButton has the focus in a simple custom 
> wxDialog, the event handler of that button is not called. Also the 
> dialog's handler for EVT_KEY_DOWN is not called, no matter what key I 
> press.
>
> Funny thing is that the event handler of that button is called when it 
> has the focus and I hit <space>.
>
> The buttons in other dialog boxes I wrote react at Enter; I don't see 
> what has this dialog box so special. Does anybody have any idea please?
>
> Thank you,
>
> Cristina.

This is a wild guess but are you sure the ID of the button is not used 
by some other control? Or maybe your dialog is set to do something when 
you press Enter?
Those are just some stupid errors that i've ran into. They may not apply 
to your case




More information about the wx-users mailing list