Vcl.ComCtrls.TToolButton.ValidateContainer
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
Updates the tool button's width and height when it is inserted into a tool bar.
ValidateContainer is called when the tool button is about to be inserted into the container specified by the AComponent parameter. After calling the ValidateContainer method of TComponent to ensure that the insertion is legal, ValidateContainer checks whether AComponent is a tool bar. If so, it updates the Height and Width properties to reflect the tool bar's ButtonHeight and ButtonWidth properties.