+ controls.push_back(_frames);
+
+ if (parent->GetLayoutDirection() == wxLayout_RightToLeft) {
+ std::reverse(controls.begin(), controls.end());
+ }
+
+ for (auto i = controls.begin(); i != controls.end(); ++i) {
+ (*i)->SetMaxLength(2);
+ editable_sizer->Add(*i);
+ if (std::next(i) != controls.end()) {
+ add_label_to_sizer(editable_sizer, _editable, wxT (":"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL);
+ }
+ }