- _hours = new wxTextCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, size);
- _hours->SetMaxLength (2);
- sizer->Add (_hours, 0);
- _hours_spin = new wxSpinButton (this, wxID_ANY);
- sizer->Add (_hours_spin, 0, wxLEFT | wxRIGHT, 2);
- sizer->Add (new wxStaticText (this, wxID_ANY, wxT (":")), 0, wxALIGN_CENTER_VERTICAL);
- _minutes = new wxTextCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, size);
- _minutes->SetMaxLength (2);
- sizer->Add (_minutes, 0);
- _minutes_spin = new wxSpinButton (this, wxID_ANY);
- sizer->Add (_minutes_spin, 0, wxLEFT | wxRIGHT, 2);
+ _hours = new wxSpinCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, size);
+ sizer->Add (_hours, 1, wxLEFT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_GAP);
+ sizer->Add (new StaticText(this, wxT(":")), 0, wxALIGN_CENTER_VERTICAL);
+ _minutes = new wxSpinCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, size);
+ sizer->Add (_minutes, 1, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_GAP);