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

TScreen.ActiveCustomForm

The TCustomForm instance which has the focus.

Declaration

Source position: forms.pp line 1274

public property TScreen.ActiveCustomForm : TCustomForm
  read FActiveCustomForm;

Description

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

Use ActiveForm to get the TForm instance that has focus on the screen.

See also

TScreen.ActiveForm

  

The TForm instance which has the focus.

TScreen.ActiveControl

  

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

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