RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomCategoryPanel.SetBounds Method

Changes the position and size of the category panel in a single operation.

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

Changes the position and size of the category panel within the constraints of the category panel group. SetBounds will not allow the height to be less than the header height of the category panel. Other category panels within the same category panel group will be adjusted accordingly. By calling SetBounds instead of adjusting the LeftTop, Width, and Height individually, you ensure that the panel will not repaint between changes. 

 

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