// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "xh_text.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#pragma hdrstop
#endif
-#if wxUSE_XML && wxUSE_XRC
+#if wxUSE_XRC
#include "wx/xrc/xh_text.h"
#include "wx/textctrl.h"
SetupWindow(text);
+ if (HasParam(wxT("maxlength")))
+ text->SetMaxLength(GetLong(wxT("maxlength")));
+
return text;
}
return IsOfClass(node, wxT("wxTextCtrl"));
}
-#endif // wxUSE_XML && wxUSE_XRC
+#endif // wxUSE_XRC