mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 23:39:24 +02:00
Docs: LCL/extctrls. Updates content in TCustomFlowPanel.CalculatePreferredSize for changes in 6cc8ef74
.
This commit is contained in:
parent
e00d028b0e
commit
1b9d3d4cbf
@ -7697,12 +7697,26 @@ Ununsed client area where the child controls are aligned.
|
|||||||
<short>Calculates the preferred size for the control.</short>
|
<short>Calculates the preferred size for the control.</short>
|
||||||
<descr>
|
<descr>
|
||||||
<p>
|
<p>
|
||||||
<var>CalculatePreferredSize</var> is an overridden procedure used to
|
<var>CalculatePreferredSize</var> is an overridden procedure used to calculate
|
||||||
calculate the preferred height and width for the flow panel.
|
the preferred height and width for the flow panel. The preferred height and
|
||||||
CalculatePreferredSize calls the inherited method.
|
width are used in the LCL auto-sizing algorithm as the default size for the
|
||||||
|
control. CalculatePreferredSize calls the inherited method on entry to
|
||||||
|
calculate preferred dimensions for its child Controls.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
CalculatePreferredSize extends the inherited method to calculate the preferred
|
||||||
|
width and height using the FlowStyle for the child Controls. It ensures that
|
||||||
|
additional space for bevels on the panel and BorderSpacing for the child
|
||||||
|
controls are included in the calculated preferred width and height. Only
|
||||||
|
visible child controls are included in the calculated values.
|
||||||
</p>
|
</p>
|
||||||
</descr>
|
</descr>
|
||||||
|
<version>
|
||||||
|
Modified in LCL 2.2.6+ to exclude hidden child controls from the calculated
|
||||||
|
dimensions for the flow panel.
|
||||||
|
</version>
|
||||||
<seealso>
|
<seealso>
|
||||||
|
<link id="TCustomFlowPanel.FlowStyle"/>
|
||||||
<link id="#lcl.controls.TControl.CalculatePreferredSize">TControl.CalculatePreferredSize</link>
|
<link id="#lcl.controls.TControl.CalculatePreferredSize">TControl.CalculatePreferredSize</link>
|
||||||
</seealso>
|
</seealso>
|
||||||
</element>
|
</element>
|
||||||
|
Loading…
Reference in New Issue
Block a user