Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TControl.AutoAdjustLayout

Applies an automatic adjustment layout policy to the control.

Declaration

Source position: controls.pp line 1623

public procedure TControl.AutoAdjustLayout(

  AMode: TLayoutAdjustmentPolicy;

  const AFromPPI: Integer;

  const AToPPI: Integer;

  const AOldFormWidth: Integer;

  const ANewFormWidth: Integer

); virtual;

Description

AutoAdjustLayout can be used to alter PPI settings, scale the control, or apply changes to height or width without scaling.

AMode indicates the layout policy applied in the method, and the actions performed to achieve the task.

Scaling factors are calculated (when needed) for both horizontal (X-axis) and vertical (Y-axis ) adjustments. The factors may represent changes to the PPI settings, or changes in the width for the control.

AutoAdjustLayout temporarily disables auto-sizing, and calls DoAutoAdjustLayout to apply the scaling factors or size changes.



CT Web help

CodeTyphon Studio