Contents Up Previous Next

wxFlexGridSizer

A flex grid sizer is a sizer which lays out its children in a two-dimensional table with all table fields in one row having the same height and all fields in one column having the same width, but all rows or all columns are not necessarily the same height or width as in the wxGridSizer.

Derived from

wxGridSizer
wxSizer
wxObject

See also

wxSizer, Sizer overview

wxFlexGridSizer::wxFlexGridSizer
wxFlexGridSizer::AddGrowableCol
wxFlexGridSizer::AddGrowableRow
wxFlexGridSizer::RemoveGrowableCol
wxFlexGridSizer::RemoveGrowableRow


wxFlexGridSizer::wxFlexGridSizer

wxFlexGridSizer(int rows, int cols, int vgap, int hgap)

wxFlexGridSizer(int cols, int vgap = 0, int hgap = 0)

Constructor for a wxGridSizer. rows and 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. vgap and hgap define extra space between all children.


wxFlexGridSizer::AddGrowableCol

void AddGrowableCol(size_t idx)

Specifies that column idx (starting from zero) should be grown if there is extra space available to the sizer.


wxFlexGridSizer::AddGrowableRow

void AddGrowableRow(size_t idx)

Specifies that row idx (starting from zero) should be grown if there is extra space available to the sizer.


wxFlexGridSizer::RemoveGrowableCol

void RemoveGrowableCol(size_t idx)

Specifies that column idx is no longer growable.


wxFlexGridSizer::RemoveGrowableRow

void RemoveGrowableRow(size_t idx)

Specifies that row idx is no longer growable.