+ wxRibbonPanel *sizer_panel = new wxRibbonPanel(home, wxID_ANY, wxT("Panel with Sizer"),
+ wxNullBitmap, wxDefaultPosition, wxDefaultSize,
+ wxRIBBON_PANEL_DEFAULT_STYLE);
+
+ wxArrayString as;
+ as.Add("Item 1 using a box sizer now");
+ as.Add("Item 2 using a box sizer now");
+ wxComboBox* sizer_panelcombo = new wxComboBox(sizer_panel, wxID_ANY,
+ wxEmptyString,
+ wxDefaultPosition, wxDefaultSize,
+ as, wxCB_READONLY);
+
+ wxComboBox* sizer_panelcombo2 = new wxComboBox(sizer_panel, wxID_ANY,
+ wxEmptyString,
+ wxDefaultPosition, wxDefaultSize,
+ as, wxCB_READONLY);
+
+ sizer_panelcombo->Select(0);
+ sizer_panelcombo2->Select(1);
+ sizer_panelcombo->SetMinSize(wxSize(150, -1));
+ sizer_panelcombo2->SetMinSize(wxSize(150, -1));
+
+ //not using wxWrapSizer(wxHORIZONTAL) as it reports an incorrect min height
+ wxSizer* sizer_panelsizer = new wxBoxSizer(wxVERTICAL);
+ sizer_panelsizer->AddStretchSpacer(1);
+ sizer_panelsizer->Add(sizer_panelcombo, 0, wxALL|wxEXPAND, 2);
+ sizer_panelsizer->Add(sizer_panelcombo2, 0, wxALL|wxEXPAND, 2);
+ sizer_panelsizer->AddStretchSpacer(1);
+ sizer_panel->SetSizer(sizer_panelsizer);
+