WindowSetAutoLayout

Help Contents GUI programming WindowSet WindowSetAutoLayout
WindowSet WindowSetBackgroundColor

WindowSetAutoLayout window autoLayout


Determines whether the wxWindow::Layout function will be called automatically when the window is resized. Please note that this only happens for the windows usually used to contain children, namely wxPanel and wxTopLevelWindow (and the classes deriving from them).

This method is called implicitly by wxWindow::SetSizer but if you use wxWindow::SetConstraints you should call it manually or otherwise the window layout won't be correctly updated when its size changes.

Parameters

autoLayout: Set this to true if you wish the Layout function to be called automatically when the window is resized.

WindowSet WindowSetBackgroundColor