XRC_ADD_STYLE(wxALIGN_CENTRE_VERTICAL);
XRC_ADD_STYLE(wxADJUST_MINSIZE);
+ XRC_ADD_STYLE(wxFIXED_MINSIZE);
}
{
// create a sizer item for it
wxSizerItem* sitem = MakeSizerItem();
- SetSizerItemAttributes(sitem);
// now fetch the item to be managed
bool old_gbs = m_isGBS;
else
wxLogError(wxT("Error in resource."));
+ // finally, set other wxSizerItem attributes
+ SetSizerItemAttributes(sitem);
+
AddSizerItem(sitem);
return item;
}
sitem->SetBorder(GetDimension(wxT("border")));
wxSize sz = GetSize(wxT("minsize"));
if (!(sz == wxDefaultSize))
- sitem->SetInitSize(sz.x, sz.y);
+ sitem->SetMinSize(sz);
sz = GetSize(wxT("ratio"));
if (!(sz == wxDefaultSize))
sitem->SetRatio(sz);