Added code to implement wxTE_READONLY style for single line text controls.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Bedward 1999-09-21 02:37:29 +00:00
parent 4486e1be1f
commit 17023320be

View File

@ -150,6 +150,10 @@ bool wxTextCtrl::Create(wxWindow *parent,
NULL
);
XtVaSetValues ((Widget) m_mainWidget,
XmNeditable, ((style & wxTE_READONLY) ? False : True),
NULL);
// TODO: Is this relevant? What does it do?
int noCols = 2;
if (!value.IsNull() && (value.Length() > (unsigned int) noCols))