(2.8.0 regression?) receive EVT_KEY_DOWN for wxRadioButton

Markus Rollmann markus.rollmann at gmx.de
Mon Dec 18 04:27:18 PST 2006


Hi,

I have trouble receiving an EVT_KEY_DOWN for wxRadioButton controls with 
  a custom wxEvtHandler. The problem is specific to the 'enter' key. My 
code works fine with other dialog controls. It worked unchanged for 
wxRadioButton in 2.6.3. (I'm using wxMSW on XP SP2)

The custom wxEvtHandler is used to handle non standard keyboard 
navigation in my dialogs (processes arrow keys and lets 'enter' work 
like 'tab'). It is installed using the PushEventHandler() member of a 
control.

The odd thing is that the opposite EVT_KEY_UP event works fine.

I traced the event chain back to wxWindowMSW::MSWWindowProc(). There the 
WM_KEYDOWN case is triggered with the 'enter' key for all controls, 
except wxRadioButton.

Any suggestions?

thanks in advance,
Markus











More information about the wx-users mailing list