TControlChildSizing.ControlsPerLine property
The number of controls displayed per column or row for the orientation / fill direction specified in Layout.
Declaration
property ControlsPerLine: Integer read FControlsPerLine write SetControlsPerLine default 0;Description
ControlsPerLine is an
Integer property which indicates
the number of child controls displayed in a column or row using the Layout for
the Control. It is relevant when Layout is set to a value other than cclNone.
When Layout is set to cclLeftToRightThenTopToBottomm it indicates the child controls displayed per row. When Layout contains clTopToBottomThenLeftToRight, it indicates the child controls displayed per column. The default value is 0 (zero), and indicates that an explicit value has not been assigned to the property and causes the grid Layout to act as if 1 was specified in the property value.
Changing the value in ControlsPerLine causes the Change method to be called to resize the child controls on the parent Control and signal the OnChange event handler (when assigned).
ControlsPerLine is used in controls like TRadioGroup and TCheckGroup to arrange the radio buttons or check boxes on the control into columns and rows.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
