TCustomDesignControl.DoAutoAdjustLayout procedure
Applies size and layout changes to the design surface and its Parent control.
Declaration
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy;
const AXProportion: Double;
const AYProportion: Double); overrideDescription
DoAutoAdjustLayout is a procedure used to perform actions needed
to apply size and layout changes to the design surface and its
Parent control.
DoAutoAdjustLayout adjusts the height and width for the design
surface by the specified scaling factors. Similarly, the
BorderSpacing and
Constraints in the control are
adjusted using the scaling factors. Finally, the
SetBounds method
is called to apply the new values for Height and Width to the design surface.
No actions are performed in the method when the Parent property has not been
assigned (contains Nil). In addition, no actions are performed when
AMode omits the lapAutoAdjustWithoutHorizontalScrolling
and lapAutoAdjustForDPI enumeration values.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
