Vcl.Forms.TApplication.ControlDestroyed

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ControlDestroyed(Control: TControl);

C++

void __fastcall ControlDestroyed(Vcl::Controls::TControl* Control);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TApplication

Description

Notifies the application when a control is destroyed.

ControlDestroyed is for internal use and is called automatically by TControl. Do not call it directly.

ControlDestroyed notifies the application that the control passed as the Control parameter has been destroyed, so that the properties which refer to controls, such as MainForm and ActiveCustomForm, can be updated to specify a valid object or nil (Delphi) or NULL (C++).

See Also