Sign in Join
FPDoc Onlineexperiment

TCustomCheckBox.ShortCut property

Member of TCustomCheckBoxpublicIn unit StdCtrls

Shortcut key for the control.

Declaration

pascal
property ShortCut: TShortcut read FShortCut;

Description

ShortCut is a TShortCut property with the primary shortcut key or accelerator key for the control. The property value contains both the virtual key code and the shift modifier for the short cut key.

The value in ShortCut is automatically updated when a caption is assigned for the control which includes an accelerator key. The accelerator key is designated using an Ampersand (&) character before the value used as the short cut. A value assigned in this manner always includes the ssCtrl modifier in the short cut value by default.

Use the ShortCut and ShortCutToKey routines in the menu.pp unit to convert to and from virtual key codes with shift modifiers.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.