[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Buttons' (#lcl)

# TCustomSpeedButton.ShowAccelChar

Indicates if the accelerator key (shortcut) is displayed in the Caption for the control.

## Declaration

Source position: buttons.pp line 431

`public property TCustomSpeedButton.ShowAccelChar : Boolean read FShowAccelChar write SetShowAccelChar default True;`

## Description

ShowAccelChar is a Boolean property which controls whether an accelerator key in Caption is displayed as an underlined character. The accelerator (or shortcut) key in Caption is identified by the '&' character, with the subsequent character used as the accelerator key.

When set to False, the underlined character is not drawn in Caption and the accelerator key is not handled in the DialogChar method.

The default value for ShowAccelChar is True. Changing the value for the property causes the control to be redrawn.

## See also

TCustomSpeedButton.DialogChar |  | Performs actions needed to handle an accelerator key for the control.
TCustomSpeedButton.ShowCaption |  | Indicates if the Caption for the speed button is displayed.
TControl.Caption |  | The text displayed for the control.