From ae5437c873940b996d2e2c65ef0e42809f5e76bc Mon Sep 17 00:00:00 2001 From: dsiders Date: Mon, 29 Nov 2021 21:34:55 +0000 Subject: [PATCH] Revert "Docs: LCL/forms. Adds topic for TCustomFrame.CreateParams added in 20c1e10a. Updates topic for TCustomFrame.CalculatePreferredSize." This reverts commit 9c982571d94cd4799c4f05938bd3e2d35eee3438. --- docs/xml/lcl/forms.xml | 47 ++++-------------------------------------- 1 file changed, 4 insertions(+), 43 deletions(-) diff --git a/docs/xml/lcl/forms.xml b/docs/xml/lcl/forms.xml index 2cb3cc9c34..09190e90e2 100644 --- a/docs/xml/lcl/forms.xml +++ b/docs/xml/lcl/forms.xml @@ -1905,49 +1905,10 @@ TFiler instance where property definitions are added. - - Gets the preferred height and width for the control used during auto-sizing. - -

- CalculatePreferredSize is an overridden method in TCustomFrame. It ensures that the inherited method is not called when the frame is an un-parented component and visible on the form designer. This allows the dimensions to be freely resized on the design surface. Values in the PreferredWidth, PreferredHeight, and WithThemeSpace arguments are not modified at design-time. -

-

- If the frame has an Owner (parent form) at run-time, the inherited method is called to get the values used in the LCL auto-sizing algorithms. -

-
- - TWinControl.CalculatePreferredSize - -
- - Preferred width for the control. - - - Preferred height for the control. - - - True if additional space is reserved in the width or height for theme details. - - - - - Updates the style flags in the window creation parameters for the control. - - -

- CreateParams is an overridden method in TCustomFrame, and calls the inherited method on entry. It extends the inherited method by updating style flags in the Params argument when both Parent and ParentWindow are unassigned (or deferred). It ensures that WS_GROUP, WS_TABSTOP, and WS_CHILD flags are removed from the style flags when the frame instance is not parented. -

-
- - Added in LCL version 2.2.0. - - - - -
- - Creation parameters updated in the method. - + + + + Updates control style flags to reflect the transparency for the frame.