[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
How child controls are sized relative to their parent.
Source position: controls.pp line 1962
type TControlChildSizing = class(TPersistent) |
||
protected |
||
procedure Change; virtual; |
|
Notifies the Control of the child sizing changes and signals the OnChange event 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(); |
|
Sets spacing properties in the class instance to the specified value. |
property Control: TWinControl; [r] |
|
The Control where the class instance is used. |
property OnChange: TNotifyEvent; [rw] |
|
Event handler signalled when the size or layout for child controls has been changed. |
published |
||
property LeftRightSpacing: Integer; [rw] |
|
Minimum distance between the left or right edge for the Control and the left or right edge for a child control. |
property TopBottomSpacing: Integer; [rw] |
|
Minimum distance between the top or bottom edge of a Control and the top or bottom edge for a child control. |
property HorizontalSpacing: Integer; [rw] |
|
Minimum space between child controls which are horizontally adjacent. |
property VerticalSpacing: Integer; [rw] |
|
Minimum space between child controls which are vertically adjacent. |
property EnlargeHorizontal: TChildControlResizeStyle; [rw] |
|
Indicates how child controls are expanded and/or aligned horizontally on the parent Control. |
property EnlargeVertical: TChildControlResizeStyle; [rw] |
|
Indicates how child controls are expanded or aligned vertically on the parent Control. |
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] |
|
Indicates the layout direction used when child controls are resized and arranged into rows and / or columns. |
property ControlsPerLine: Integer; [rw] |
|
The number of controls displayed per column or row for the orientation specified in Layout. |
end; |
|
How child controls are sized relative to their parent. |
|
| | ||
| | ||
TControlChildSizing is a TPersistent descendant which provides properties and methods used to layout, align, and resize child controls relative to their parent. Properties are provided 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.
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)
|
Defines how child controls are resized / aligned. |
|
|
Defines the logic used to wrap child controls. |
Version 3.2 | Generated 2024-02-25 | Home |