projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert inclusion of wx/dateevt.h for now, as it breaks linkage
[wxWidgets.git]
/
src
/
xrc
/
xh_text.cpp
diff --git
a/src/xrc/xh_text.cpp
b/src/xrc/xh_text.cpp
index 19bbd601c8501150a3fa8db74d4013a5a354af95..7adc43d65aa05c190cdb7273d9bc9fb58b6b4f48 100644
(file)
--- a/
src/xrc/xh_text.cpp
+++ b/
src/xrc/xh_text.cpp
@@
-8,10
+8,6
@@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "xh_text.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
@@
-19,6
+15,8
@@
#pragma hdrstop
#endif
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_text.h"
#include "wx/textctrl.h"
#include "wx/xrc/xh_text.h"
#include "wx/textctrl.h"
@@
-61,6
+59,9
@@
wxObject *wxTextCtrlXmlHandler::DoCreateResource()
SetupWindow(text);
SetupWindow(text);
+ if (HasParam(wxT("maxlength")))
+ text->SetMaxLength(GetLong(wxT("maxlength")));
+
return text;
}
return text;
}
@@
-68,3
+69,5
@@
bool wxTextCtrlXmlHandler::CanHandle(wxXmlNode *node)
{
return IsOfClass(node, wxT("wxTextCtrl"));
}
{
return IsOfClass(node, wxT("wxTextCtrl"));
}
+
+#endif // wxUSE_XRC