pressing Enter when a wxButton has the focus

Thomas Zehbe tz at ingenion.de
Thu Oct 5 07:23:28 PDT 2006


Am Donnerstag, 5. Oktober 2006 16:03 schrieb cai:
> >Have you seen this lines?
> >     searchBtn->Disable();
> >     searchBtn->SetDefault();
> >Is "this" the concerned button?
> >
> >Thomas
>
> Yes, that's the button. However I do not try to hit Enter on it
> unless it is enabled, of course. And also no other button in this
> dialog box does not react at Enter when it gets the focus (all the
> other buttons except "Search" are enabled all the time).
Hm, as the enabling/disabling and SetDefault() story is the only visible 
difference between the buttons, I would do 2 steps.
1. disable the SetDefault()
2. disable the enable/disable calls
and see if the behaviour changes.

Regards,

Thomas

>
> Regards,
>
> 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