Try to better explain what wxFIXED_MINSIZE does

Don't mention the non-existent GetAdjustedBestSize() function and do
explain what setting wxFIXED_MINSIZE achieves and how it can be done
without it.

Closes #18315.
This commit is contained in:
Vadim Zeitlin 2018-12-30 15:40:00 +01:00
parent 9a8ef599d2
commit c9b240e893

View File

@ -83,12 +83,14 @@
The item will be expanded as much as possible while also
maintaining its aspect ratio.}
@itemdef{wxFIXED_MINSIZE,
Normally wxSizers will use GetAdjustedBestSize() to determine what
the minimal size of window items should be, and will use that size
to calculate the layout. This allows layouts to adjust when an
item changes and its best size becomes different. If you would
rather have a window item stay the size it started with then use
@c wxFIXED_MINSIZE.}
Normally sizers use the "best", i.e. most appropriate, size of the
window to determine what the minimal size of window items should be.
This allows layouts to adjust correctly when the item contents,
and hence its best size, changes. If this behaviour is unwanted,
@c wxFIXED_MINSIZE can be used to fix minimal size of the window
to its initial value and not change it any more in the future.
Note that the same thing can be accomplished by calling
wxWindow::SetMinSize() explicitly as well.}
@itemdef{wxRESERVE_SPACE_EVEN_IF_HIDDEN,
Normally wxSizers don't allocate space for hidden windows or other
items. This flag overrides this behaviour so that sufficient space