[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Indicates the layout direction used when child controls are resized and arranged into rows and / or columns.
Source position: controls.pp line 2000
published property TControlChildSizing.Layout : TControlChildrenLayout |
Layout is a TControlChildrenLayout property which indicates the layout behavior for adjacent controls in the parent Control. Layout is used when methods in TControl descendants need to arrange their child controls into columns or rows.
The default value for the property is cclNone, and indicates that a layout direction has not been specified. This causes the design-time positioning in the Anchors, Align, and BorderSpacing properties for the child controls to be used.
Use cclLeftToRightThenTopToBottom or cclTopToBottomThenLeftToRight to layout child controls in column / row order using the BiDiMode settings for the Control. These values also enable use of the spacing and alignment settings in the class including: ControlsPerLine, HorizontalSpacing, VerticalSpacing, TopBottomSpacing, LeftRightSpacing, EnlargeHorizontal, and EnlargeVertical.
Changing the value for the property causes the Change method to be called to resize / realign child controls and to signal the OnChange event handler (when assigned).
Layout is used in TControl methods like WidthIsAnchored and HeightIsAnchored, and in the AlignControls method in TWinControl.
|
Notifies the Control of the child sizing changes and signals the OnChange event handler. |
|
|
The Control where the class instance is used. |
|
|
Event handler signalled when the size or layout for child controls has been changed. |
|
|
Defines the logic used to arrange child controls. |
|
|
Repositions and resizes the control and child controls. |
|
|
True when both the control's top and bottom side are anchored. |
|
|
True when both the control's left and right side are anchored. |
|
|
Specifies the placement of the control on its Parent control. |
|
|
The set of anchor definitions for this control. |
|
|
Determines the inner and outer border spacing for this control. |
Version 4.0 | Generated 2025-05-03 | Home |