Document wxSizer::RecalcSizes() and RepositionChildren() better

Mention that RecalcSizes() shouldn't be called any more, after the
changes of 622deec262 (Replace wxSizer::RecalcSizes() with
RepositionChildren(), 2015-10-11), and that RepositionChildren()
replacing it shouldn't be directly called neither.
This commit is contained in:
Vadim Zeitlin
2020-06-08 13:26:59 +02:00
parent 0d68a6d42e
commit de2fba540b
2 changed files with 7 additions and 0 deletions

View File

@@ -96,6 +96,9 @@ Changes in behaviour not resulting in compilation errors
- wxAuiNotebook::RemovePage() now hides the removed page, so it needs to be
shown again if it is reused in another place.
- wxSizer::RecalcSizes() shouldn't be called directly (note that it was never
supposed to be called, only implemented), call Layout() instead.
Changes in behaviour which may result in build errors
-----------------------------------------------------

View File

@@ -733,6 +733,10 @@ public:
total size available to the sizer (@c m_size) and the size computed by
the last call to CalcMin().
Note that you should never call this method directly, call Layout()
instead if you need to manually update the sizer elements positions.
This method is only called by wxWidgets itself.
@since 3.1.3, before this version RecalcSizes() method not taking any
arguments had to be overridden in the derived classes instead.
*/