From 21d0ac5fadeaa02c7d1f743dba0f8ef08de4adc3 Mon Sep 17 00:00:00 2001 From: dsiders Date: Tue, 22 Nov 2022 08:43:28 +0000 Subject: [PATCH] Docs: LCL/controls. Updates topics for changes in 5ee7f1a519, 75ebb1fc. * TControlStyleType.csAutoSize0x0 * TControl.Color --- docs/xml/lcl/controls.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/xml/lcl/controls.xml b/docs/xml/lcl/controls.xml index b48fb1f040..deb51c9356 100644 --- a/docs/xml/lcl/controls.xml +++ b/docs/xml/lcl/controls.xml @@ -1530,7 +1530,10 @@ Child controls owned by this control are not selectable in the designer. -If the preferred size is 0x0 then control is shrunk to 0x0 + +If the preferred size is 0x0 pixels then the control is auto-sized; the +default minimum client size will be 1x1 pixels. + @@ -8193,7 +8196,8 @@ Override this method to return the preferred height and width for the control.

Calculates the preferred width and height for a control, which is used by the LCL auto-sizing algorithms as the default size. Negative or zero (0) values -are treated as undefined and the LCL uses other sizes instead. +are treated as undefined and the LCL uses other sizes instead. This value is +independent of constraints and siblings, only the inner parts are relevant.

TWinControl overrides this and asks the interface for theme @@ -16555,7 +16559,7 @@ ClientWidth is needed / used. -The background color of the control. +The background color for the control.

The default value in Color is the same as the value in the parent @@ -19485,7 +19489,7 @@ are relevant for the calculates values. WithThemeSpace adds space for stacking when set to True. For example: TRadioButton has a minimum size. But for stacking multiple TRadioButtons there should be space around each control. This space -is theme- dependent, so it is passed as a parameter to the widgetset. +is theme-dependent, so it is passed as a parameter to the widgetset.