git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57507
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- // Create and attach the sizer
+ // Create and attach a 2-column grid sizer
- wxFlexGridSizer* sizer = new wxFlexGridSizer(2, 1, 0, 0);
- this->SetSizer(sizer);
- sizer->AddGrowableRow(0);
+ wxFlexGridSizer* sizer = new wxFlexGridSizer(2);
sizer->AddGrowableCol(0);
sizer->AddGrowableCol(0);
//
// Create our media control
//
// Create our media control
horsizer3->Add(m_pbSlider, 1, wxALL, 5);
sizer->Add(horsizer3, 1, wxCENTRE | wxALL, 5);
horsizer3->Add(m_pbSlider, 1, wxALL, 5);
sizer->Add(horsizer3, 1, wxCENTRE | wxALL, 5);
+ // Now that we have all our rows make some of them growable
+ sizer->AddGrowableRow(0);
+