pressing Enter when a wxButton has the focus
Thomas Zehbe
tz at ingenion.de
Thu Oct 5 01:13:29 PDT 2006
Hi Christina,
Am Donnerstag, 5. Oktober 2006 10:53 schrieb cai:
> 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.
have you set wxWANTS_CHARS style?
>
> Funny thing is that the event handler of that button is called when
> it has the focus and I hit <space>.
<tab> and <enter> are normally grabed by the operating system.
> 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?
Is the button in the other app the DefaultItem? The "default button" is
"pressed" when you hit <enter>.
Regards,
Thomas
> Thank you,
>
> Cristina.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
--
Dipl.-Ing. Thomas Zehbe
INGENION GmbH
Kuhweide 6
31552 Apelern
Fon: 05043 / 40 57 90 4
Fax: 05043 / 40 57 90 7
More information about the wx-users
mailing list