[Overview][Types][Classes][Procedures and functions][Index] |
Adjusts the specified rectangle to account for border and bevels used in the control.
Source position: extctrls.pp line 1082
protected procedure TCustomPanel.AdjustClientRect( |
var aRect: TRect |
); override; |
AdjustClientRect is an overridden procedure used to adjust the drawing rectangle in ARect to account for borders and bevels used on the panel. AdjustClientRect calls the inherited method, and calculates the number of pixels required for the settings in BorderWidth, BeveInner, and BevelOuter. AdjustClientRect calls InflateRect to adjust ARect by the calcluated border and bevel widths.
AdjustClientRect is called when the control is autosize or aligned.
|
BevelInner - determines the nature of the Inner Bevel of the panel (whether raised, lowered etc) |
|
|
BevelOuter - determines the nature of the Outer Bevel of the panel (whether raised, lowered etc) |
|
|
Width of the Border around the control; default is zero. |
|
|
Override this method when the ClientRect for a control differs from the default value. |