Waldemar Biernacki wrote:
Tuesday 17 of June 2008 08:57:45 James McDonald napisaĆ(a):
I would like to close my application by pressing the escape key.
I know I have to define the escape key press event and specify a sub
routine that will trigger when I press escape. However I haven't been
able to google an example.
Could anyone point me in the right direction?
This is my simple text file viewer with ESCAPE key to exit;
ARGV[0] = file to view. Inifile at the end
wb
#----------------------------------------------------------------
#!/usr/bin/perl -w
use strict;
use warnings;
use Win32::GUI
Thanks for this Waldemar, but this example is using Win32::GUI. I'm
looking for a wxPerl example and I think the code will be different.