wxFrame key events
chris
cb at delta-h.de
Wed Feb 6 04:54:01 PST 2008
On 6 Feb., 12:55, Matthias Buelow <m... at incubus.de> wrote:
> Hi folks,
>
> I'm trying to catch EVT_KEY_DOWN and EVT_KEY_UP in an application's
> wxFrame; on wxGTK, I only see EVT_KEY_UP. On Windows, I only see
> EVT_KEY_DOWN, but depending on where in the frame I click (apparently,
> some kind of invisible keyboard focus is transferred to children.) Have
> others encountered these problems and solved them in a satisfying way? I
> simply want to catch a couple key events unconditionally, no matter
> where in the application the keyboard focus is.
> I'm using wxWidgets 2.8.7.
>
> Thanks.
I noticed something similar:
I'm Using a wxPanel as canvas, to wich i bind the following event
handlers via Connect() method:
wxEVT_MOTION, wxEVT_RIGHT_DOWN, wxEVT_LEFT_UP and some others work
fine.
wxEVT_KEY_DOWN works for wxGTK not for wxMSW
wxEVT_MOUSEWHEEL works for wxGTK and starts working under wxMSW but
stops while application is running.
I had no time to trace this back, so I can't tell if this error is in
my code or in wx.
What I can tell is, that I once noticed a difference between dynamic
and static connection to event handlers.
wx:
[2.8.7 wxMSW]
[svn wxGTK]
regards
chris
More information about the wx-users
mailing list