RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolButton.SetAutoSize Method

Sets the value of the AutoSize property.

Pascal
procedure SetAutoSize(Value: Boolean); override;
C++
virtual __fastcall SetAutoSize(Boolean Value);

SetAutoSize is the protected write implementation of the AutoSize property. TToolButton overrides the inherited method so that it can force the parent toolbar to update its layout if the tool button resizes in response to changing AutoSize to true. 

 

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