Win32::GUI::AcceleratorTable - Create accelerator table resources
The AcceleratorTable object can be associated to a window with the -accel option; then, when an accelerator is used, a corresponding <name>_Click event is fired.
Common methods apply to most windows, controls and resources.
new(%ACCELERATORS)
Creates an AcceleratorTable object.
%ACCELERATORS is an associative array of key combinations and accelerator names or sub reference, in pair: Example:
$A = new Win32::GUI::AcceleratorTable( "Ctrl-X" => "Close", "Shift-N" => "New", "Ctrl-Alt-Del" => "Reboot", "Shift-A" => sub { print "Hello\n"; }, );
Keyboard combinations currently support the following modifier :
Shift Ctrl (or Control) Alt
and the following keys:
A..Z, 0..9 Left, Right, Up, Down Home, End, PageUp, PageDown (or PgUp/PgDn) Space, Ins, Del, Esc, Backspace, Tab, Return F1..F12
See also the common options.
Common events apply to most windows and controls.
Click()
Sent when the users triggers an Accelerator object.
Documentation for Win32::GUI v1.14 created 01 Jun 2017
This document is autogenerated by the build process. Edits made here will be lost. Edit docs/per_package.tpl instead.
Homepage: http://perl-win32-gui.sourceforge.net/.
For further support join the users mailing list from the website at http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users. There is a searchable list archive at http://sourceforge.net/p/perl-win32-gui/mailman/perl-win32-gui-users/.
Copyright (c) 1997..2017 Aldo Calpini. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Win32::GUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::GUI
CPAN shell
perl -MCPAN -e shell install Win32::GUI
For more information on module installation, please visit the detailed CPAN module installation guide.