RAD Studio VCL Reference
TCustomButtonControl.SetBounds Method

Sets the Left, Top, Width, and Height properties all at once.

procedure SetBounds(ALeft: Integer; ATop: Integer; AWidth: Integer; AHeight: Integer); override;
virtual __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);

This override of the method inherited from TControl simultaneously sets all boundary properties at once, and thus avoiding the possibility of a control redraw between the time one value sets and another. In addition, some layout calculations are also performed. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!