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

TControlBorderSpacing.AutoAdjustLayout

Automatically adjusts the size of the control using the specified proportions.

Declaration

Source position: controls.pp line 866

public procedure TControlBorderSpacing.AutoAdjustLayout(

  const AXProportion: Double;

  const AYProportion: Double

);

Arguments

AYProportion

  

Scaling factor applied to height values.

Description

AutoAdjustLayout is a procedure used to automatically adjust the size of the control using the specified proportions.

AXProportion and AYProportion are Double values which contain the scaling factor applied to width and height values in corresponding properties. For example, 1.25 indicates an increase to 125% of the original value, and 0.5 indicates a 50% decrease in the original value.

AutoAdjustLayout scales the value in width and height for properties, including:

When property values are altered in the scaling operation, the InvalidatePreferredSize method is called to recalculate the dimensions for the control. The Change method is called when value(s) in InnerBorder have been altered.

See also

TControlBorderSpacing.Around

  

The space to add on each side of a control.

TControlBorderSpacing.InnerBorder

  

Space added to the widget's preferred size

TControlBorderSpacing.Left

  

The space at the left border.

TControlBorderSpacing.Top

  

The space at the top border.

TControlBorderSpacing.Right

  

The space at the right border.

TControlBorderSpacing.Bottom

  

The space at the bottom border.


Version 3.2 Generated 2024-02-25 Home