RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBNavigator.SetBounds Method

Sets the database navigator's boundary 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);

Call SetBounds when to set more than one of the navigator's boundary properties at a time. The Left, Top, Width, and Height properties are set to the values passed in the ALeft, ATop, AWidth, and AHeight parameters, respectively. SetBounds arranges the buttons on the navigator to fit within the boundaries. 

Although you can always set the individual boundaries, using SetBounds makes several changes at once without rearranging the buttons for each change. 

 

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