- sizerText->Add(new wxStaticText(this, -1, _T("Date in ISO format: ")),
- wxSizerFlags().Border());
- m_text = new wxTextCtrl(this, -1);
- sizerText->Add(m_text, wxSizerFlags().Expand().Border());
+ sizerText->Add(new wxStaticText(this, wxID_ANY, _T("Date in ISO format: ")),
+ wxSizerFlags().Border().Align(wxALIGN_CENTRE_VERTICAL));
+ m_text = new wxTextCtrl(this, wxID_ANY);
+ sizerText->Add(m_text, wxSizerFlags().
+ Expand().Border().Align(wxALIGN_CENTRE_VERTICAL));