1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XRC resource for wxTextCtrl
4 // Author: Aleksandras Gluchovas
7 // Copyright: (c) 2000 Aleksandras Gluchovas
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "xh_text.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
22 #include "wx/xrc/xh_text.h"
23 #include "wx/textctrl.h"
25 wxTextCtrlXmlHandler::wxTextCtrlXmlHandler() : wxXmlResourceHandler()
27 XRC_ADD_STYLE(wxTE_PROCESS_ENTER
);
28 XRC_ADD_STYLE(wxTE_PROCESS_TAB
);
29 XRC_ADD_STYLE(wxTE_MULTILINE
);
30 XRC_ADD_STYLE(wxTE_PASSWORD
);
31 XRC_ADD_STYLE(wxTE_READONLY
);
32 XRC_ADD_STYLE(wxHSCROLL
);
36 wxObject
*wxTextCtrlXmlHandler::DoCreateResource()
38 XRC_MAKE_INSTANCE(text
, wxTextCtrl
)
40 text
->Create(m_parentAsWindow
,
42 GetText(wxT("value")),
43 GetPosition(), GetSize(),
53 bool wxTextCtrlXmlHandler::CanHandle(wxXmlNode
*node
)
55 return IsOfClass(node
, wxT("wxTextCtrl"));