Sign in Join
FPDoc Onlineexperiment

TBoundLabel.FocusControl property

Member of TBoundLabelpublicIn unit ExtCtrls

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

Declaration

pascal
property FocusControl:;

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.