Vcl.Forms.TScreen.ActiveControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ActiveControl: TWinControl read FActiveControl;

C++

__property Vcl::Controls::TWinControl* ActiveControl = {read=FActiveControl};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TScreen

Description

Indicates which control currently has input focus on the screen.

Read ActiveControl to learn which windowed control object in the active form currently receives the input from the keyboard.

ActiveControl is a read-only property. To change the ActiveControl, use the SetFocusedControl method of the form that contains the control that should receive focus.

After focus shifts from one control to another, the screen receives an OnActiveControlChange event.

See Also