Sign in Join
FPDoc Onlineexperiment

TScreen.ActiveControl property

Member of TScreenpublicIn unit Forms

The control which has the focus on the active form for the screen.

Declaration

pascal
property ActiveControl: TWinControl read FActiveControl;

Description

ActiveControl is a read-only TWinControl property which indicates the form or control that has focus on the screen, and gets input entered using the keyboard. The property value is updated when the SetFocusedControl method in TCustomForm sets the active control for the form and calls the UpdateLastActive method for the screen.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.