Sign in Join
FPDoc Onlineexperiment

TControlBorderSpacing.AutoAdjustLayout procedure

Member of TControlBorderSpacingpublicIn unit Controls

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

Declaration

pascal
procedure AutoAdjustLayout(const AXProportion: Double; 
 const AYProportion: Double)

Arguments

AXProportion
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:

  • Around
  • InnerBorder
  • Left
  • Top
  • Right
  • Bottom

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.