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

TScreen.ActiveForm

The TForm instance which has the focus.

Declaration

Source position: forms.pp line 1275

public property TScreen.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

TScreen.ActiveControl

  

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

TScreen.ActiveCustomForm

  

The TCustomForm instance which has the focus.

TCustomForm.SetFocusedControl

  

Handles a focus change for a control (enter/exit messages).

TCustomForm.MoveToDefaultPosition

  

Moves the form to the location specified in the Position property.

TApplication.ControlDestroyed

  

Clears all references to the destroyed control.


Version 3.2 Generated 2024-02-25 Home