diff --git a/src/xrc/xh_text.cpp b/src/xrc/xh_text.cpp index 550c9e43f6..0f3c8cc0f1 100644 --- a/src/xrc/xh_text.cpp +++ b/src/xrc/xh_text.cpp @@ -63,6 +63,9 @@ wxObject *wxTextCtrlXmlHandler::DoCreateResource() SetupWindow(text); + if (HasParam(wxT("maxlength"))) + text->SetMaxLength(GetLong(wxT("maxlength"))); + return text; }