// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "xh_text.h"
#endif
#pragma hdrstop
#endif
+#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_XRC