[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 967

protected procedure TCustomGrid.CalculatePreferredSize(

  var PreferredWidth: Integer;

  var PreferredHeight: Integer;

  WithThemeSpace: Boolean

); override;

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.

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