Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TWinControl.ChildSizing

Provides settings used to resize and align child controls using a tabular layout.

Declaration

Source position: controls.pp line 2326

public property TWinControl.ChildSizing : TControlChildSizing
  read FChildSizing
  write SetChildSizing;

Description

ChildSizing is a TControlChildSizing property which contains properties and methods used to resize and layout the child controls on a control instance. ChildSizing provides an alternative to using Anchors and Align properties to position and resize child controls. It allows a dynamic tabular (or matrix) layout to be applied to its child Controls.

Use the Layout property to specify both the order and direction child controls are aligned, and which algorithm is used to size and position child controls. Values in ChildSizing are used and applied when its Layout property is set to a value other than cclNone.

See TControlChildSizing for more detailed information about the properties and methods in the class instance.

Additional information about child sizing and layout can be found on the Typhon Wiki at:

Autosize / Layout (https://wiki.lazarus.freepascal.org/Autosize_/_Layout)

LCL AutoSizing (https://wiki.lazarus.freepascal.org/LCL_AutoSizing)

Version info

Implementation refactored in LCL version 4.0. This may result in behavior that differs from previous LCL versions.

See also

TWinControl.ControlCount

  

The number of child controls in the Controls property.

TWinControl.Controls

  

Provides indexed access to the child controls for the class instance.

TWinControl.AlignControls

  

Repositions and resizes the control and child controls.

TWinControl.AdjustClientRect

  

Override this method when the ClientRect for a control differs from the default value.

TWinControl.DoChildSizingChange

  

Called after a change in ChildSizing information to trigger further processing.

TWinControl.InvalidatePreferredChildSizes

  

Flags the preferred sizes of all child controls as invalid (recursively).

TControl.Align

  

Specifies the placement of the control on its Parent control.

TControl.Anchors

  

The set of anchor definitions for this control.

TControlChildSizing

  

Contains settings which determine how child controls are sized and positioned on their parent.



CT Web help

CodeTyphon Studio