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

TControl.Constraints

Contains the minimum and maximum Width and Height for the control.

Declaration

Source position: controls.pp line 1801

public property TControl.Constraints : TSizeConstraints
  read FConstraints
  write SetConstraints;

Description

Constraints is a TSizeConstraints property with the sizing constraints used for the control. Constraints contains properties like MinHeight, MaxHeight, MinWidth, and MaxWidth. They are applied (when assigned) to the corresponding control properties when its bounds or preferred size is changed, and during scaling operations.

See also

TControl.ChangeScale

  

Applies scaling (multiplier and divider) to the bounds coordinates, constraints, and Font in a control.

TControl.ChangeBounds

  

Sets the bounds (left, top, height, width) and optionally the BaseBounds of the control.

TControl.GetPreferredSize

  

Returns default/preferred height and width, for use in auto-sizing.

TSizeConstraints

  

Holds minimum and maximum values for the width or height of a control.


Version 4.0 Generated 2025-05-03 Home