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