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:
@@ -86,8 +86,8 @@ All GUI ports:
|
||||
- Wizard now validates when pressing Back or Next
|
||||
- Implemented wxNotebook::DoGetBestSize so Fit now works
|
||||
- Added FindItemByPosition to wxMenu
|
||||
- wxTimer now derives from wxEvtHandler and is its own owner
|
||||
object by default
|
||||
- wxTimer now derives from wxEvtHandler and is its own owner object by default
|
||||
- implemented wxFlexGridSizer::Show() (Wade Brainerd)
|
||||
|
||||
Unix:
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user