X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e10e38d8b4405625c3687bdfe6cb315874d1d70..760f0fc2f4b875beb06e5ecd6d69b891d8360efe:/docs/latex/wx/flexsizr.tex?ds=inline diff --git a/docs/latex/wx/flexsizr.tex b/docs/latex/wx/flexsizr.tex index f19c7640cf..28b3c3c95f 100644 --- a/docs/latex/wx/flexsizr.tex +++ b/docs/latex/wx/flexsizr.tex @@ -1,3 +1,14 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Name: flexsizr.tex +%% Purpose: wxFlexGridSizer +%% Author: wxWidgets Team +%% Modified by: +%% Created: +%% RCS-ID: $Id$ +%% Copyright: (c) wxWidgets Team +%% License: wxWindows license +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \section{\class{wxFlexGridSizer}}\label{wxflexgridsizer} A flex grid sizer is a sizer which lays out its children in a two-dimensional @@ -8,10 +19,10 @@ the \helpref{wxGridSizer}{wxgridsizer}. Since wxWidgets 2.5.0, wxFlexGridSizer can also size items equally in one direction but unequally ("flexibly") in the other. If the sizer is only -flexible in one direction (this can be changed using -\helpref{SetFlexibleDrection}{wxflexgridsizersetflexibledirection}), +flexible in one direction (this can be changed using +\helpref{SetFlexibleDirection}{wxflexgridsizersetflexibledirection}), it needs to be decided how the sizer should grow in the other ("non flexible") -direction in order to fill the available space. The +direction in order to fill the available space. The \helpref{SetNonFlexibleGrowMode}{wxflexgridsizersetnonflexiblegrowmode} method serves this purpose. @@ -67,7 +78,7 @@ of {\it proportion} parameter. \membersection{wxFlexGridSizer::GetFlexibleDirection}\label{wxflexgridsizergetflexibledrection} -\constfunc{int}{GetFlexibleDirections}{\void} +\constfunc{int}{GetFlexibleDirection}{\void} Returns a wxOrientation value that specifies whether the sizer flexibly resizes its columns, rows, or both (default). @@ -84,7 +95,7 @@ One of the following values: \wxheading{See also} -\helpref{SetFlexibleDrection}{wxflexgridsizersetflexibledirection} +\helpref{SetFlexibleDirection}{wxflexgridsizersetflexibledirection} \membersection{wxFlexGridSizer::GetNonFlexibleGrowMode}\label{wxflexgridsizergetnonflexiblegrowmode} @@ -101,18 +112,18 @@ One of the following values: \begin{twocollist} \twocolitem{wxFLEX\_GROWMODE\_NONE}{Sizer doesn't grow in the non flexible direction.} \twocolitem{wxFLEX\_GROWMODE\_SPECIFIED}{Sizer honors growable columns/rows set with -\helpref{AddGrowableCol}{wxflexgridsizeraddgrowablecol} and +\helpref{AddGrowableCol}{wxflexgridsizeraddgrowablecol} and \helpref{AddGrowableRow}{wxflexgridsizeraddgrowablerow}. In this case equal sizing applies to minimum sizes of columns or rows (this is the default value).} \twocolitem{wxFLEX\_GROWMODE\_ALL}{Sizer equally stretches all columns or rows -in the non flexible direction, whether they are growable or not in the flexbile +in the non flexible direction, whether they are growable or not in the flexible direction.} \end{twocollist} \wxheading{See also} -\helpref{SetFlexibleDrection}{wxflexgridsizersetflexibledirection}, +\helpref{SetFlexibleDirection}{wxflexgridsizersetflexibledirection}, \helpref{SetNonFlexibleGrowMode}{wxflexgridsizersetnonflexiblegrowmode} @@ -132,10 +143,10 @@ Specifies that row idx is no longer growable. \membersection{wxFlexGridSizer::SetFlexibleDirection}\label{wxflexgridsizersetflexibledirection} -\func{void}{SetFlexibleDirections}{\param{int }{direction}} +\func{void}{SetFlexibleDirection}{\param{int }{direction}} Specifies whether the sizer should flexibly resize its columns, rows, or -both. Argument {\tt direction} can be {\tt wxVERTICAL}, {\tt wxHORIZONTAL} +both. Argument {\tt direction} can be {\tt wxVERTICAL}, {\tt wxHORIZONTAL} or {\tt wxBOTH} (which is the default value). Any other value is ignored. See \helpref{GetFlexibleDirection()}{wxflexgridsizergetflexibledrection} for the explanation of these values. @@ -149,10 +160,9 @@ Note that this method does not trigger relayout. Specifies how the sizer should grow in the non flexible direction if there is one (so -\helpref{SetFlexibleDirections()}{wxflexgridsizersetflexibledirection} must have +\helpref{SetFlexibleDirection()}{wxflexgridsizersetflexibledirection} must have been called previously). Argument {\it mode} can be one of those documented in \helpref{GetNonFlexibleGrowMode}{wxflexgridsizergetnonflexiblegrowmode}, please see there for their explanation. Note that this method does not trigger relayout. -