[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Indicates how child controls are expanded or aligned vertically on the parent Control.
Source position: controls.pp line 1994
published property TControlChildSizing.EnlargeVertical : TChildControlResizeStyle |
EnlargeVertical is a TChildControlResizeStyle property which indicates how child controls are expanded or aligned vertically on the parent Control. The default value for the property is crsAnchorAligning.
Child sizing styles include:
Uses a static layout based on the preferred height and size constraints for the child controls. Child controls heights are not changed when the parent Control is resized.
Scales the width for child controls while keeping the space between them fixed. Children are resized so that the control heights are a ratio of their preferred widths (or size constraints) relative to the client area on the parent Control. Controls are scaled to fill the unused vertical space. All controls in a given row are given the same derived height.
Applies a homogenous height to child controls in a given row on the tabular layout. The height of child controls is expanded to fill the unused area in the parent Control after spacing and size constraints have been applied.
Applies a uniform number of pixels as vertical spacing between child controls on the same column. The height for controls in a given column are derived using the preferred height for the controls and any height constraints (minimum or maximum) in the child controls. Any unused vertical space on the Control is allocated equally as spacing above, between, and below each row in the tabular layout - including on the top and bottom edges of the Control.
Row heights do not change when the parent Control is resized; only the spacing between edges and rows is affected.
Child controls use a uniform size for all controls in the same row for the tabular layout. Size constraints (minimum or maximum) for child controls are enforced if the constraint would be enabled for the row size. The unused space on the parent Control, after spacing, is allocated equally to rows where a size constraint is not in effect. Row heights are recalculated when the parent Control is resized.
See TChildControlResizeStyle for more information about the child sizing layout algorithms.
The styles in EnlargeHorizontal, EnlargeVertical, ShrinkHorizontal, and ShrinkVertical are used when Layout is set to a value other than cclNone. The styles apply to child controls which have their Anchors set to [akLeft, akTop], Align set alNone, and are not anchored to another control using AnchorSide. Any control with other Anchors or Align settings cannot be displayed in the tabular layout.
The child controls are positioned using the BorderSpacing for the control (and its parent control) and the spacing values in TopBottomSpacing and VerticalSpacing.
Setting a new value for EnlargeVertical causes the Change method to be called. This invalidate the preferred sizes for the child controls, and causes them to be realigned. The OnChange event handler is also signalled (when assigned).
Use ShrinkVertical to specify the child sizing style applied when control heights are reduced to fit within the client area for the parent Control.
|
The Control where the class instance is used. |
|
|
Indicates the layout direction used when child controls are resized and arranged into rows and / or columns. |
|
|
Indicates how child controls are expanded and aligned horizontally on the parent Control. |
|
|
Defines how child controls are resized / aligned. |
Version 4.0 | Generated 2025-05-03 | Home |