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

# TBoundLabel.FocusControl

Control focused when the accelerator key for the label is detected.

## Declaration

Source position: extctrls.pp line 978

`public property TBoundLabel.FocusControl : TWinControl;`

## Description

FocusControl is a public TWinControl property in TBoundLabel. A label control cannot receive the input focus (it is read-only), but can display an accelerator key indicator, just like a menu entries. A windowed control (Edit...) can receive focus, but cannot indicate an accelerator key.

An accelerator key is designated using an Ampersand '&' in the label Caption, immediately preceding the character to be used as the accelerator key. The marked character appears with an underline on the screen when ShowAccelChar is set to True.

FocusControl receives key messages in the DialogChar method.

## See also

TCustomLabel.DialogChar |  | Performs actions needed to handle an accelerator key for the control.
TCustomLabel.FocusControl |  | The control associated with the label and its accelerator key (AccelChar).
TCustomLabel.ShowAccelChar |  | Underlines the character in the label that acts as the accelerator or short cut key.