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

TCustomSpeedButton.CalculatePreferredSize

Calculates the default height and Width required for the control.

Declaration

Source position: buttons.pp line 371

protected procedure TCustomSpeedButton.CalculatePreferredSize(

  var PreferredWidth: Integer;

  var PreferredHeight: Integer;

  WithThemeSpace: Boolean

); override;

Arguments

PreferredWidth

  

Width calculated for the control.

PreferredHeight

  

Height calculated for the control.

WithThemeSpace

  

Not used in the current implementation.

Description

Calls MeasureDraw to gets the values for the variable parameters in PreferredWidth and PreferredHeight.

Remark: Please note that the WithThemeSpace parameter is NOT used in the current implementation.

Version 3.2 Generated 2024-02-25 Home