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

TControlChildSizing.EnlargeHorizontal

Indicates how child controls are expanded and/or aligned horizontally on the parent Control.

Declaration

Source position: controls.pp line 1981

published property TControlChildSizing.EnlargeHorizontal : TChildControlResizeStyle
  read FEnlargeHorizontal
  write SetEnlargeHorizontal
  default crsAnchorAligning;

Description

EnlargeHorizontal is a TChildControlResizeStyle property which indicates how child controls are expanded or aligned horizontally on the parent Control. The default value for the property is crsAnchorAligning, and indicates that the Anchors, Align, and BorderSpacing properties in the child controls are used - and work like Delphi.

crsAnchorAligning
The Layout and spacing values in the class instance are not used. Instead, properties in the child controls like Align, Anchors, and BorderSpacing are used to resize and align the controls horizontally. Child controls which use the Align property are processed in a specific order: alTop, alBottom, alLeft, and finally alRight.
crsHomogenousChildResize
Applies a homogeneous width to child controls when Layout is set to a value other than cclNone. The realized width is adjusted for the number of pixels specified in LeftRightSpacing, and the number of rows or columns needed for the setting in ControlsPerLine.
crsHomogenousSpaceResize
Applies a uniform number of pixels as horizontal space between child controls on the same row. The number of available pixels is determined by the unused space on the Control and the settings in Layout and ControlsPerLine. An equal number of pixels is applied before, between, and after each column on a given row - including on the left and right edges of the Control. The width of the child controls is not affected.
crsScaleChilds
Scales child controls so they all have a uniform width. The width for each control is determined by the unused client area for the Control and the Layout and ControlsPerLine properties.

The value in EnlargeHorizontal is not used or applied when Layout is set to cclNone.

See also

TControlChildSizing.Control

  

The Control where the class instance is used.

TControlChildSizing.Layout

  

Indicates the layout direction used when child controls are resized and arranged into rows and / or columns.

TControlChildSizing.EnlargeVertical

  

Indicates how child controls are expanded or aligned vertically on the parent Control.

TChildControlResizeStyle

  

Defines how child controls are resized / aligned.