TdxCustomDockControl.SetBounds(Integer,Integer,Integer,Integer) Method
Specifies the position and size of the dock control.
Declaration
procedure SetBounds(ALeft: Integer; ATop: Integer; AWidth: Integer; AHeight: Integer); override;
Parameters
Name | Type |
---|---|
ALeft | Integer |
ATop | Integer |
AWidth | Integer |
AHeight | Integer |
Remarks
The SetBounds method overrides the base class method to implement size and/or position changes. As implemented in the TdxCustomDockControl class, the ALeft and ATop parameters are not used. The AWidth and AHeight parameters specify the new width and height of the control respectively. When a control is docked to the left or right edge of a dock site or when it is in a horizontal side container, you can change the control’s width. When a control is docked to a top or bottom edge of a dock site or when it is within a vertical side container, you can change its height.
To change the position and size of the control when it is floating, use the properties and methods of the float form where it resides. This can be accessed using the FloatForm property, for instance.