RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomButtonControl.SetBounds Method

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

Pascal
procedure SetBounds(ALeft: Integer; ATop: Integer; AWidth: Integer; AHeight: Integer); override;
C++
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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!