Vcl.ComCtrls.TCustomHotKey

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.Controls.TWinControlVcl.Controls.TControlSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTCustomHotKey

Delphi

TCustomHotKey = class(TWinControl)

C++

class PASCALIMPLEMENTATION TCustomHotKey : public Vcl::Controls::TWinControl

Properties

Type Visibility Source Unit Parent
class public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls Vcl.ComCtrls

Description

TCustomHotKey is the base class for objects that wrap the Windows accelerator key Common Control.

TCustomHotKey is an abstract class that encapsulates behavior of an object that is used to set a shortcut property at run time. 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 run time hold down the ALT, CTRL, or SHIFT key 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.

See Also