RAD Studio VCL Reference
|
TCustomHotKey is the base class for objects that wrap the Windows accelerator key Common Control.
TCustomHotKey = class(TWinControl);
class TCustomHotKey : public TWinControl;
ComCtrls
TCustomHotKey is an abstract class that encapsulates behavior of an object that is used to set a shortcut property at runtime. Accelerator key objects are used to perform an action quickly by enabling users to link the accelerator key to a combination of keystrokes that will execute the action. TCustomHotKey introduces properties to:
Associate the accelerator key with keystrokes to perform an action
Select a key combination at design time
Invalidate specific modifier keys
To change the key combination at runtime hold down the Alt, Ctrl or Shift keys or combinations of them and type a letter or number. The accelerator key property can then be assigned to the shortcut property of a menu item, for example.
Hot key classes that descend from TCustomHotKey inherit the basic functionality of TCustomHotKey. Use TCustomHotKey as a base class for deriving specialized accelerator key objects.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|