Sign in Join
FPDoc Onlineexperiment

TScrollBox.ChildSizing property

Member of TScrollBoxpublishedIn unit Forms

Provides a grid (table) layout for the children of this control.

Declaration

pascal
property ChildSizing:;

Description

ChildSizing provides access to the TControlChildSizing properties and methods of the control. Those manage how the child-controls are resized and placed into a grid layout.

ChildSizing is an alternative to using Anchors and Align properties to position and resize child controls.

Use the Layout property to enable the grid and specify the order and direction in which child controls are aligned. This affects how TControlChildSizing.ControlsPerLine determines the size of grid setting either the amount of columns or rows. The default is cclNone and disables the grid layout.

Choose a resize algorithm for shrinking or growing children's width and height. This does nothing when cclNone is chosen.

Spacing between and around the cells of the grid can be set as part of the TControlChildSizing. It can also be set by using the BorderSpacing of individual child-controls. The TControlChildSizing properties for spacing are also used when the layout is set to cclNone. They affect child-controls that are anchored or aligned in a similar manner as setting the child's BorderSpacing.

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 Lazarus Wiki at:

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

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

This description is the one of Controls.TWinControl.ChildSizing.

See also

  • ControlCount
  • Controls
  • AlignControls
  • AdjustClientRect
  • DoChildSizingChange
  • InvalidatePreferredChildSizes
  • Align
  • Anchors
  • TControlChildSizing

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