better documentation for wxWindow::SetSizerAndFit()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-01-12 15:25:02 +00:00
parent 4b3f61d14c
commit 702a26fded
3 changed files with 13 additions and 10 deletions

View File

@@ -3594,8 +3594,11 @@ only the sizer will have effect.
\func{void}{SetSizerAndFit}{\param{wxSizer* }{sizer}, \param{bool }{deleteOld=true}}
The same as \helpref{SetSizer}{wxwindowsetsizer}, except it also sets the size hints
for the window based on the sizer's minimum size.
This method calls \helpref{SetSizer}{wxwindowsetsizer} and then
\helpref{wxSizer::SetSizeHints}{wxsizersetsizehints} which sets the initial
window size to the size needed to accommodate all sizer elements and sets the
size hints which, if this window is a top level one, prevent the user from
resizing it to be less than this minimial size.
\membersection{wxWindow::SetThemeEnabled}\label{wxwindowsetthemeenabled}