API:Vcl.ComCtrls.TToolButton.ValidateContainer

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ValidateContainer(AComponent: TComponent); override;

C++

DYNAMIC void __fastcall ValidateContainer(System::Classes::TComponent* AComponent);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TToolButton

Description

Determines whether an object can be inserted into a container.

Vcl.ComCtrls.TToolButton.ValidateContainer inherits from System.Classes.TComponent.ValidateContainer. All content below this line refers to System.Classes.TComponent.ValidateContainer.

Determines whether an object can be inserted into a container.

ValidateContainer is called by a component when it is about to be inserted into a container object. By default, ValidateContainer calls the ValidateInsert method of the component specified by the AComponent parameter.

Descendent components can override ValidateContainer to disallow a component from being inserted into specific containers. To disallow an insertion, raise an exception in the derived method.

See Also