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:
@@ -150,6 +150,10 @@ bool wxTextCtrl::Create(wxWindow *parent,
|
|||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
XtVaSetValues ((Widget) m_mainWidget,
|
||||||
|
XmNeditable, ((style & wxTE_READONLY) ? False : True),
|
||||||
|
NULL);
|
||||||
|
|
||||||
// TODO: Is this relevant? What does it do?
|
// TODO: Is this relevant? What does it do?
|
||||||
int noCols = 2;
|
int noCols = 2;
|
||||||
if (!value.IsNull() && (value.Length() > (unsigned int) noCols))
|
if (!value.IsNull() && (value.Length() > (unsigned int) noCols))
|
||||||
|
Reference in New Issue
Block a user