2000-07-15 15:51:35 -04:00
|
|
|
\section{\class{wxGridSizer}}\label{wxgridsizer}
|
|
|
|
|
|
|
|
A grid sizer is a sizer which lays out its children in a two-dimensional
|
|
|
|
table with all table fields having the same size,
|
|
|
|
i.e. the width of each field is the width of the widest child,
|
|
|
|
the height of each field is the height of the tallest child.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxSizer}{wxsizer}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
2002-01-27 14:58:13 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxSizer}{wxsizer}, \helpref{Sizer overview}{sizeroverview}
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
\membersection{wxGridSizer::wxGridSizer}\label{wxgridsizerwxgridsizer}
|
|
|
|
|
2001-04-20 00:30:28 -04:00
|
|
|
\func{}{wxGridSizer}{\param{int }{rows}, \param{int }{cols}, \param{int }{vgap}, \param{int }{hgap}}
|
2000-07-15 15:51:35 -04:00
|
|
|
|
|
|
|
\func{}{wxGridSizer}{\param{int }{cols}, \param{int }{vgap = 0}, \param{int }{hgap = 0}}
|
|
|
|
|
|
|
|
Constructor for a wxGridSizer. {\it rows} and {\it cols} determine the number of
|
|
|
|
columns and rows in the sizer - if either of the parameters is zero, it will be
|
|
|
|
calculated to form the total number of children in the sizer, thus making the
|
|
|
|
sizer grow dynamically. {\it vgap} and {\it hgap} define extra space between
|
|
|
|
all children.
|
|
|
|
|
2001-05-01 19:14:40 -04:00
|
|
|
\membersection{wxGridSizer::GetCols}\label{wxgridsizergetcols}
|
|
|
|
|
|
|
|
\func{int}{GetCols}{}
|
|
|
|
|
|
|
|
Returns the number of columns in the sizer.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridSizer::GetHGap}\label{wxgridsizergethgap}
|
|
|
|
|
|
|
|
\func{int}{GetHGap}{}
|
|
|
|
|
|
|
|
Returns the horizontal gap (in pixels) between cells in the sizer.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridSizer::GetRows}\label{wxgridsizergetrows}
|
|
|
|
|
|
|
|
\func{int}{GetRows}{}
|
|
|
|
|
|
|
|
Returns the number of rows in the sizer.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridSizer::GetVGap}\label{wxgridsizergetvgap}
|
|
|
|
|
|
|
|
\func{int}{GetVGap}{}
|
|
|
|
|
|
|
|
Returns the vertical gap (in pixels) between the cells in the sizer.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridSizer::SetCols}\label{wxgridsizersetcols}
|
|
|
|
|
|
|
|
\func{void}{SetCols}{\param{int }{cols}}
|
|
|
|
|
|
|
|
Sets the number of columns in the sizer.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridSizer::SetHGap}\label{wxgridsizersethgap}
|
|
|
|
|
|
|
|
\func{void}{SetHGap}{\param{int }{gap}}
|
|
|
|
|
|
|
|
Sets the horizontal gap (in pixels) between cells in the sizer.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridSizer::SetRows}\label{wxgridsizersetrows}
|
|
|
|
|
|
|
|
\func{void}{SetRows}{\param{int }{rows}}
|
|
|
|
|
|
|
|
Sets the number of rows in the sizer.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridSizer::SetVGap}\label{wxgridsizersetvgap}
|
|
|
|
|
|
|
|
\func{void}{SetVGap}{\param{int }{gap}}
|
|
|
|
|
|
|
|
Sets the vertical gap (in pixels) between the cells in the sizer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|