RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolButton.ValidateContainer Method

Updates the tool button's width and height when it is inserted into a tool bar.

Pascal
procedure ValidateContainer(AComponent: TComponent); override;
C++
virtual __fastcall ValidateContainer(TComponent * AComponent);

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. 

 

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