[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TControlChildSizing

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

How child controls are sized relative to their parent.

Declaration

Source position: controls.pp line 1882

type TControlChildSizing = class(TPersistent)

protected

  procedure Change; virtual;

  

Notifies the Control and invokes the OnChange handler.

public

  constructor Create();

  

Constructor for the class instance.

  procedure Assign(); override;

  

Copies property values from the specified persistent object into the current class instance.

  procedure AssignTo(); override;

  

Copies property values from the current class instance to the specified persistent object.

  function IsEqual();

  

Determines whether the specified sizing contains the same values as the current class instance.

  procedure SetGridSpacing();

  

Set all spacing to the same value.

  property Control: TWinControl; [r]

  

The Control to which childsizing applies.

  property OnChange: TNotifyEvent; [rw]

  

Event handler for any change in the data.

published

  property LeftRightSpacing: Integer; [rw]

  

Minimum distance between children and client border.

  property TopBottomSpacing: Integer; [rw]

  

Minimum distance between children and client border.

  property HorizontalSpacing: Integer; [rw]

  

Minimum space between children.

  property VerticalSpacing: Integer; [rw]

  

Minimum space between children.

  property EnlargeHorizontal: TChildControlResizeStyle; [rw]

  

Various ways to fit controls into the available Width.

  property EnlargeVertical: TChildControlResizeStyle; [rw]

  

Various ways to fit controls into the available Height.

  property ShrinkHorizontal: TChildControlResizeStyle; [rw]

  

Various ways to fit controls into the available Width.

  property ShrinkVertical: TChildControlResizeStyle; [rw]

  

Various ways to fit controls into the available Height.

  property Layout: TControlChildrenLayout; [rw]

  

Allows to also arrange the child controls in rows or columns.

  property ControlsPerLine: Integer; [rw]

  

Number of controls per line.

end;

Inheritance

TControlChildSizing

  

How child controls are sized relative to their parent.

|

TPersistent

?

TObject

Description

TControlChildSizing is a TPersistent descendant which provides properties and methods used to layout, align, and resize child controls relative to their parent. Properties are provide which define the horizontal and vertical spacing between controls, the preferred direction controls are aligned, and whether controls are scaled to fit in the parent control.

See TChildControlResizeStyle and TControlChildrenLayout for details about the enumeration values used in the properties.

See also

TChildControlResizeStyle

  

Modes for resizing child controls.

TControlChildrenLayout

  

Defines the logic used to wrap child controls.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.