Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomLabelProperties.ShowAccelChar Property

Determines how an ampersand in the label text is displayed.

#Declaration

Delphi
property ShowAccelChar: Boolean read; write; default True;

#Property Value

Type Default
Boolean True

#Remarks

Set the ShowAccelChar property to True to allow the label to display an underlined accelerator key value. In this case 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 while pressing the Alt key. To display an ampersand when the ShowAccelChar is set to True, use two ampersands (&&) to stand for the single ampersand that is displayed.

Set the ShowAccelChar property to False to display the label’s text with all ampersands appearing as ampersands. In this case the value of the FocusControl property is not used.

The default value of the ShowAccelChar property is True.

See Also