]> git.saurik.com Git - wxWidgets.git/commitdiff
Added code to implement wxTE_READONLY style for single line text controls.
authorMichael Bedward <mbedward@ozemail.com.au>
Tue, 21 Sep 1999 02:37:29 +0000 (02:37 +0000)
committerMichael Bedward <mbedward@ozemail.com.au>
Tue, 21 Sep 1999 02:37:29 +0000 (02:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/textctrl.cpp

index 6a2c7a0cb5ecab26b818e5b69b460f5154c2f0de..623de21836100e92c0893282d1a372baeba56464 100644 (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))