- wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL);
- SetSizer (overall_sizer);
-
- wxFlexGridSizer* table = new wxFlexGridSizer (3, DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
- table->AddGrowableCol (1, 1);
- overall_sizer->Add (table, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
-
- add_label_to_sizer (table, this, _("Repeat"), true);
- _number = new wxSpinCtrl (this, wxID_ANY);
- table->Add (_number, 1);
-
- add_label_to_sizer (table, this, _("times"), false);
+ add (_("Repeat"), true);
+ _number = add (new wxSpinCtrl (this, wxID_ANY));
+ add (_("times"), false);