Sign in Join
FPDoc Onlineexperiment

TSizeConstraints.MaxWidth property

Member of TSizeConstraintspublishedIn unit Controls

The maximum width for the associated Control.

Declaration

pascal
property MaxWidth: TConstraintSize read FMaxWidth write SetMaxWidth default 0;

Description

MaxWidth is a TConstraintSize property which contains the maximum 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 MinWidth to set minimum width for the associated Control.

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

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.