API:Vcl.Forms.TForm.ActiveControl

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

property ActiveControl: TWinControl read FActiveControl write SetActiveControl stored IsForm;

C++

__property ActiveControl;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
property published
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TForm

Beschreibung

Gibt das aktive Steuerelement in einem Formular an.

Vcl.Forms.TForm.ActiveControl erbt von Vcl.Forms.TCustomForm.ActiveControl. Der folgende Inhalt bezieht sich auf Vcl.Forms.TCustomForm.ActiveControl.

Gibt das aktive Steuerelement in einem Formular an.

Mit ActiveControl können Sie ermitteln oder festlegen, welches Steuerelement im Formular den Fokus hat. In einer Anwendung kann immer nur ein Steuerelement aktiv sein.

Hat das Formular momentan nicht den Fokus, gibt ActiveControl das Steuerelement an, das beim Aktivieren des Formulars den Fokus erhält.

Anmerkung:  Wenn der Fokus zu einem anderen Steuerelement wechselt, wird ActiveControl aktualisiert, bevor das Ereignis OnExit ausgelöst wird.

Siehe auch

Codebeispiele