]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/xml/xh_text.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XML 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/xml/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
= new wxTextCtrl(m_parentAsWindow
,
40 GetText(wxT("value")),
41 GetPosition(), GetSize(),
53 bool wxTextCtrlXmlHandler::CanHandle(wxXmlNode
*node
)
55 return IsOfClass(node
, wxT("wxTextCtrl"));