RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBLookupComboBox.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);

Use SetBounds to change all of the combo box's boundary properties at one time. The same effect can be achieved by setting the Left, Top, Width, and Height properties separately, but SetBounds changes all four properties at once ensuring that the control will not repaint between changes.  

Specify the values for the Left, Top, Width, and Height properties as the value of the ALeft, ATop, AWidth, and AHeight parameters, respectively. Note that the AHeight parameter is ignored: SetBounds always bases the height for the combo box on the current Font.

Note: Calling SetBounds does not necessarily result in the Left, Top, and Width properties changing to the specified values. Before the properties are changed, the Constraints property may limit the changes.
 

 

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