Vcl.StdCtrls.TLabel.ShowAccelChar

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ShowAccelChar: Boolean read FShowAccelChar write SetShowAccelChar default 1;

C++

__property ShowAccelChar = {default=1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TLabel

Description

Determines how an ampersand in the label text is displayed.

Vcl.StdCtrls.TLabel.ShowAccelChar inherits from Vcl.StdCtrls.TCustomLabel.ShowAccelChar. All content below this line refers to Vcl.StdCtrls.TCustomLabel.ShowAccelChar.

Determines how an ampersand in the label text is displayed.

Set ShowAccelChar to true to allow the label to display an underlined accelerator key value. When ShowAccelChar is true, any character preceded by an ampersand (&) appears underlined. If the FocusControl property is set, the windowed control specified by the FocusControl property receives input focus when the user types that underlined character. To display an ampersand when ShowAccelChar is true, use two ampersands (&&) to stand for the single ampersand that is displayed.

Set ShowAccelChar to false to display the label text with all ampersands appearing as ampersands. When ShowAccelChar is false, the value of the FocusControl property is not used.

See Also

Code Examples