Skip to main content

TcxCustomLabelProperties.ShowAccelChar Property

Determines how an ampersand in the label text is displayed.

Declaration

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