]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_text.cpp
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 ADD_STYLE(wxTE_PROCESS_ENTER
);
28 ADD_STYLE(wxTE_PROCESS_TAB
);
29 ADD_STYLE(wxTE_MULTILINE
);
30 ADD_STYLE(wxTE_PASSWORD
);
31 ADD_STYLE(wxTE_READONLY
);
36 wxObject
*wxTextCtrlXmlHandler::DoCreateResource()
38 wxTextCtrl
*text
= wxStaticCast(m_instance
, wxTextCtrl
);
41 text
= new wxTextCtrl
;
43 text
->Create( m_parentAsWindow
,
45 GetText(wxT("value")),
46 GetPosition(), GetSize(),
58 bool wxTextCtrlXmlHandler::CanHandle(wxXmlNode
*node
)
60 return IsOfClass(node
, wxT("wxTextCtrl"));