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

TCustomGrid.CalculatePreferredSize

Gets the preferred width and height for the control.

Declaration

Source position: grids.pas line 992

protected procedure TCustomGrid.CalculatePreferredSize(

  var PreferredWidth: Integer;

  var PreferredHeight: Integer;

  WithThemeSpace: Boolean

); override;

Arguments

PreferredWidth

  

Preferred width for a new instance of the class.

PreferredHeight

  

Preferred height for a new instance of the class.

WithThemeSpace

  

Not used in the current implementation.

Description

Always returns 0 (zero) in the PreferredWidth and PreferredHeight variable arguments.

See also

TWinControl.CalculatePreferredSize

  

Override this method to return a different preferred height and/or width for auto-sizing.


Version 4.0 Generated 2025-05-03 Home