Sign in Join
FPDoc Onlineexperiment

TControlChildSizing.TopBottomSpacing property

Member of TControlChildSizingpublishedIn unit Controls

Minimum distance between the top or bottom edge of a Control and the top or bottom edge for a child control.

Declaration

pascal
property TopBottomSpacing: Integer read FTopBottomSpacing write SetTopBottomSpacing default 0;

Description

TopBottomSpacing is an Integer property with the number of pixels reserved as spacing between child controls and the top and bottom edges of the Control. For example: When TopBottomSpacing is set to 5 for a Control, the Top property for a child control starts at 5.

The default value for the property is 0 (zero) and indicates that no additional space is reserved on the corresponding edges of the Control. Changing the value for the property causes the Change method to be called to resize/realign child controls. The OnChange event handler is also signalled (when assigned).

TopBottomSpacing also affects control alignment when using Anchors for positioning child controls on a parent.

Use VerticalSpacing to reserve space between vertically adjacent child controls in a column on the tabular Layout.

Use LeftRightSpacing to reserved space on the left and right edges of the Control.

See also

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