- new wxStaticBox(m_ParentAsWindow, -1, GetText(_T("label"))),
- GetStyle(_T("orient"), wxHORIZONTAL));
+ new wxStaticBox(m_parentAsWindow, -1, GetText(wxT("label"))),
+ GetStyle(wxT("orient"), wxHORIZONTAL));
+ }
+
+ else if (m_class == wxT("wxGridSizer"))
+ sizer = new wxGridSizer(GetLong(wxT("rows")), GetLong(wxT("cols")),
+ GetDimension(wxT("vgap")), GetDimension(wxT("hgap")));
+
+ else if (m_class == wxT("wxFlexGridSizer"))
+ {
+ wxFlexGridSizer *fsizer =
+ new wxFlexGridSizer(GetLong(wxT("rows")), GetLong(wxT("cols")),
+ GetDimension(wxT("vgap")), GetDimension(wxT("hgap")));
+ sizer = fsizer;
+ wxStringTokenizer tkn;
+ unsigned long l;
+ tkn.SetString(GetParamValue(wxT("growablerows")), wxT(","));
+ while (tkn.HasMoreTokens())
+ {
+ if (!tkn.GetNextToken().ToULong(&l))
+ wxLogError(wxT("growablerows must be comma-separated list of row numbers"));
+ else
+ fsizer->AddGrowableRow(l);
+ }
+ tkn.SetString(GetParamValue(wxT("growablecols")), wxT(","));
+ while (tkn.HasMoreTokens())
+ {
+ if (!tkn.GetNextToken().ToULong(&l))
+ wxLogError(wxT("growablecols must be comma-separated list of column numbers"));
+ else
+ fsizer->AddGrowableCol(l);
+ }