]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 1185219 ] maxlength property for xrc textctrl
authorJulian Smart <julian@anthemion.co.uk>
Sun, 22 May 2005 15:42:37 +0000 (15:42 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 22 May 2005 15:42:37 +0000 (15:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xh_text.cpp

index 550c9e43f691fd8084db81a01f2ce5903926728f..0f3c8cc0f11a8e3b28ce3ee93b53c65b67ac8901 100644 (file)
@@ -63,6 +63,9 @@ wxObject *wxTextCtrlXmlHandler::DoCreateResource()
 
     SetupWindow(text);
 
+    if (HasParam(wxT("maxlength")))
+        text->SetMaxLength(GetLong(wxT("maxlength")));
+
     return text;
 }