Sign in Join
FPDoc Onlineexperiment

TScreen.ActiveForm property

Member of TScreenpublicIn unit Forms

The TForm instance which has the focus.

Declaration

pascal
property ActiveForm: TForm read FActiveForm;

Description

ActiveForm is a read-only TForm property which contains the form instance in the application which has focus on the screen. The property value is updated from methods in TCustomForm like SetFocusedControl and MoveToDefaultPosition. It is also updated from methods in TApplication like ControlDestroyed.

Use ActiveCustomForm to get a form instance derived from TCustomForm, including: THintWindow, TCustomDockForm, and TLazDockForm. These class types are not available in ActiveForm.

See also

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