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

TSizeConstraints.MinWidth

The minimum width for the associated Control.

Declaration

Source position: controls.pp line 749

published property TSizeConstraints.MinWidth : TConstraintSize
  read FMinWidth
  write SetMinWidth
  default 0;

Description

MixWidth is a TConstraintSize property which contains the minimum width in pixels allowed for the associated Control. The default value for the property is 0 (zero) and indicates that the size constraint has not been assigned and is not enforced.

Changing the value for the property causes assigned (non-zero) values in MaxWidth and MinWidth to be normalized; the smaller of the two values becomes the MinWidth, and the larger of the two values becomes the MaxWidth. The Change method is called to apply the new size constraints to Control, and to signal the OnChange event handler (when assigned).

Use MaxWidth to set maximum width for the associated Control.

Use MaxHeight and MinHeight to set the constrained height for the associated Control.

See also

TSizeConstraints.MaxHeight

  

The maximum height for the associated Control.

TSizeConstraints.MinHeight

  

The minimum height for the associated Control.

TSizeConstraints.MaxWidth

  

The maximum width for the associated Control.

TSizeConstraints.Change

  

Adjusts the size for the associated Control, and signals the OnChange handler when assigned.

TSizeConstraints.OnChange

  

Event handler signalled when a value in the class instance has been changed.

TSizeConstraints.Control

  

The associated Control to which these constraints apply.


Version 4.0 Generated 2025-05-03 Home