Re: EVT_KEY_UP on linux and on windows

2008-07-17 Thread Johan Vromans
Gabor Szabo [EMAIL PROTECTED] writes: EVT_KEY_UP( $self, \on_key ); On Linux it works on Windows it does not. What am I doing wrong ? My guess is that on Windows the window associated with $self is not eligible to receive key events. Did you try running Wx::Demo? It has some demo code to

EVT_KEY_UP on linux and on windows

2008-07-16 Thread Gabor Szabo
I have the following code: EVT_KEY_UP( $self, \on_key ); sub on_key { my ($self, $event) = @_; if ($event-GetKeyCode == WXK_F3) { print F3 pressed\n; } #print $event-GetKeyCode, \n; return; } On Linux it works on Windows it does not. What am I doing wrong ? Gabor