NAME
Win32::GUI::AcceleratorTable - Create accelerator table resources
DESCRIPTION
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.
METHODS
Common methods apply to most windows, controls and resources.
new
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.
EVENTS
Common events apply to most windows and controls.
Click
Click()
Sent when the users triggers an Accelerator object.
VERSION
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.
SUPPORT
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 and LICENCE
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.