[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 1809

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 maximum and minimum values that can be used in sizing objects.


Version 3.2 Generated 2024-02-25 Home