Vcl.Controls.TWinControl.AdjustClientRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AdjustClientRect(var Rect: TRect); virtual;

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

Provides the interface that adjusts the ClientRect property for idiosyncrasies of the window.

AdjustClientRect is called internally when the control needs accurate information on where to place child controls within the client area. As implemented in TWinControl, AdjustClientRect does nothing. Override this method in descendants such as TTabControl where the ClientRect property is not the same as the region in which child objects can appear.

See Also