[wxMac 2.5.3] Default buttons: do they react on <return&g

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
HWiesmann
Earned a small fee
Earned a small fee
Posts: 12
Joined: Sat Dec 18, 2004 1:07 pm
Location: The Netherlands

[wxMac 2.5.3] Default buttons: do they react on <return&g

Post by HWiesmann »

Hi!

When using the standard wxListBox for example I can select the items in the list by scrolling up and down with the cursor keys.
The OK button is highlighted as the default button. I expect that hitting <return> or <enter> will be equivalent to clicking the OK button.
Obviously this is not the case. Is this default behaviour?

Hartwig
Regards,

Hartwig
wiseguy
In need of some credit
In need of some credit
Posts: 5
Joined: Thu Dec 23, 2004 10:37 am

Post by wiseguy »

Hi !

try button->SetDefault();

regards
HWiesmann
Earned a small fee
Earned a small fee
Posts: 12
Joined: Sat Dec 18, 2004 1:07 pm
Location: The Netherlands

[wxMac 2.5.3] Default buttons: do they react on <return&g

Post by HWiesmann »

Hi!

That's what I did (otherwise the button is not highlighted).

Hartwig
Regards,

Hartwig
wiseguy
In need of some credit
In need of some credit
Posts: 5
Joined: Thu Dec 23, 2004 10:37 am

Post by wiseguy »

Really, it does not work in 2.5.3, I think, that it is problems with KeyboardEventHandler, the bug is known, because a problem with wxListCtrl too.

regards
Post Reply