RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TScreen.ActiveControl Property

Indicates which control currently has input focus on the screen.

Pascal
property ActiveControl: TWinControl;
C++
__property TWinControl * ActiveControl;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!