From RAD Studio API Documentation
Jump to: navigation, search


property ShowAccelChar: Boolean read FShowAccelChar write SetShowAccelChar default True;


__property bool ShowAccelChar = {read=FShowAccelChar, write=SetShowAccelChar, default=1};


Type Visibility Source Unit Parent
property protected
Vcl.StdCtrls TCustomLabel


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