Sign in Join
FPDoc Onlineexperiment

TCustomLabel.ShowAccelChar property

Member of TCustomLabelprotectedIn unit StdCtrls

Underlines the character in the label that acts as the accelerator or short cut key.

Declaration

pascal
property ShowAccelChar: Boolean read FShowAccelChar write SetShowAccelChar default True;

Description

When False, an Ampersand (&) character in the label caption is displayed as an ordinary character (as used in the Object Inspector).

When True, the character following the Ampersand ('&') is drawn with an underline. When the user presses the accelerator key, input focus is given to the associated FocusControl.

Note that underlining of the accelerator character is not supported when the label is rotated.

See also

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