- 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. -
-- 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. -
-