Vcl.Forms.TCustomForm.AdjustClientRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AdjustClientRect(var Rect: TRect); override;

C++

virtual void __fastcall AdjustClientRect(System::Types::TRect &Rect);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

Adjusts the ClientRect property to exclude the scroll bars.

Vcl.Forms.TCustomForm.AdjustClientRect inherits from Vcl.Forms.TScrollingWinControl.AdjustClientRect. All content below this line refers to Vcl.Forms.TScrollingWinControl.AdjustClientRect.

Adjusts the ClientRect property to exclude the scroll bars.

AdjustClientRect is called internally when the control needs accurate information on where to place child controls within the client area. It indents Rect to exclude the area taken by the scroll bars, then calls the inherited AdjustClientRect method.

See Also