- for (dcp::NameFormat::Map::const_iterator i = titles.begin(); i != titles.end(); ++i) {
- wxStaticText* t = new wxStaticText (_panel, wxID_ANY, std_to_wx (String::compose ("%%%1 %2", i->first, i->second)));
- _sizer->Add (t);
- wxFont font = t->GetFont();
+ auto titles_sizer = new wxFlexGridSizer (2);
+ for (auto const& i: titles) {
+ auto t = new StaticText (_panel, std_to_wx (String::compose ("%%%1 %2", i.first, i.second)));
+ titles_sizer->Add(t, 1, wxRIGHT, DCPOMATIC_SIZER_X_GAP);
+ auto font = t->GetFont();