support Show() in wxFlexGridSizer (patch 737850)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-06-22 22:08:13 +00:00
parent 1b1ca07a70
commit 55f9f0cbc8
4 changed files with 107 additions and 77 deletions

View File

@@ -309,3 +309,5 @@ minimal size. For windows with managed scrollbars this will set them appropriate
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().
Note that this only works with wxBoxSizer and wxFlexGridSizer, since they
are the only two sizer classes that can size rows/columns independently.

View File

@@ -113,6 +113,21 @@ initial width:
Within wxDesigner, this stretch factor gets set from the {\it Option} menu.
\subsubsection{Hiding controls using sizers}\label{sizershiding}
You can hide controls contained in sizers the same way you would hide any control,
using the \helpref{wxWindow::Show}{wxwindowshow} method.
However, wxSizer also offers a separate method which can tell the sizer not to
consider that control in its size calculations. To hide a window using the sizer,
call \helpref{wxSizer::Show}{wxsizershow}. You must then call Layout on the sizer
to force an update.
This is useful when hiding parts of the interface, since you can avoid removing
the controls from the sizer and having to add them back later.
Note: This is supported only by wxBoxSizer and wxFlexGridSizer.
\wxheading{wxBoxSizer}
\helpref{wxBoxSizer}{wxboxsizer} can lay out its children either vertically