[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TWinControl.AdjustClientRect

Override this method when the ClientRect for a control differs from the default value.

Declaration

Source position: controls.pp line 2085

protected procedure TWinControl.AdjustClientRect(

  var ARect: TRect

); virtual;

Description

It is called often, so don't use expensive code here, or cache the resulting client rectangle.

See also

TWinControl.GetAdjustedLogicalClientRect

  

Returns the adjusted ClientRect, using the cached value if available.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.