From 24f904f41faa505fc344d927994d8a38d79f27a6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 11 Feb 2006 00:19:34 +0000 Subject: [PATCH] note that SetAutoLayout() doesn't work for all windows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/window.tex | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/latex/wx/window.tex b/docs/latex/wx/window.tex index f4e551cff2..dadaf4ef1d 100644 --- a/docs/latex/wx/window.tex +++ b/docs/latex/wx/window.tex @@ -2455,16 +2455,21 @@ See also \helpref{wxAccessible}{wxaccessible}. \func{void}{SetAutoLayout}{\param{bool}{ autoLayout}} Determines whether the \helpref{wxWindow::Layout}{wxwindowlayout} function will -be called automatically when the window is resized. It is called implicitly by -\helpref{wxWindow::SetSizer}{wxwindowsetsizer} but if you use +be called automatically when the window is resized. Please note that this only +happens for the windows usually used to contain children, namely +\helpref{wxPanel}{wxpanel} and \helpref{wxTopLevelWindow}{wxtoplevelwindow} +(and the classes deriving from them). + +This method is called implicitly by +\helpref{wxWindow::SetSizer}{wxwindowsetsizer} but if you use \helpref{wxWindow::SetConstraints}{wxwindowsetconstraints} you should call it manually or otherwise the window layout won't be correctly updated when its size changes. \wxheading{Parameters} -\docparam{autoLayout}{Set this to {\tt true} if you wish the Layout function to be called -from within wxWindow::OnSize functions.} +\docparam{autoLayout}{Set this to \true if you wish the Layout function to be +called automatically when the window is resized.} \wxheading{See also} -- 2.45.2