Recursive wxSizer::Show for subsizer and return value if element was found.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-09-13 13:46:45 +00:00
parent 3778513ac1
commit 8b2bac626c
4 changed files with 88 additions and 63 deletions

View File

@@ -391,14 +391,17 @@ minimal size. For windows with managed scrollbars this will set them appropriate
\membersection{wxSizer::Show}\label{wxsizershow}
\func{void}{Show}{\param{wxWindow* }{window}, \param{bool }{show = true}}
\func{bool}{Show}{\param{wxWindow* }{window}, \param{bool }{show = true}, \param{bool }{recursive = false}}
\func{void}{Show}{\param{wxSizer* }{sizer}, \param{bool }{show = true}}
\func{bool}{Show}{\param{wxSizer* }{sizer}, \param{bool }{show = true}, \param{bool }{recursive = false}}
\func{void}{Show}{\param{size\_t }{index}, \param{bool }{show = true}}
\func{bool}{Show}{\param{size\_t }{index}, \param{bool }{show = true}}
Shows or hides the {\it window}, {\it sizer}, or item at {\it index}.
To make a sizer item disappear or reappear, use Show() followed by Layout().
Use parameter {\it recursive} to show or hide elements found in subsizers.
Returns true if the child item was found, false otherwise.
Note that this only works with wxBoxSizer and wxFlexGridSizer, since they
are the only two sizer classes that can size rows/columns independently.