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

TCustomFlowPanel.CalculatePreferredSize

Calculates the preferred size for the control.

Declaration

Source position: extctrls.pp line 1260

protected procedure TCustomFlowPanel.CalculatePreferredSize(

  var PreferredWidth: Integer;

  var PreferredHeight: Integer;

  WithThemeSpace: Boolean

); override;

Arguments

PreferredWidth

  

Preferred width for new instances of the control.

PreferredHeight

  

Preferred height for new instances of the control.

WithThemeSpace

  

True if additional space is reserved for theme element details.

Description

CalculatePreferredSize is an overridden procedure used to calculate the preferred height and width for the flow panel. CalculatePreferredSize calls the inherited method.

See also

TControl.CalculatePreferredSize

  

Override this method to return the preferred height and width for the control.