]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/textctrl.cpp
Added "set new icon" menu item to taskbar sample; updated some makefiles
[wxWidgets.git] / src / motif / textctrl.cpp
index 07bd42afbab746490f163fd2ea0e7807c184ec26..3a66bd8ff8a6661ecacf9abedfb47e1610558110 100644 (file)
     #pragma implementation "textctrl.h"
 #endif
 
+#ifdef __VMS
+#define XtParent XTPARENT
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fstream.h>
@@ -300,7 +304,7 @@ bool wxTextCtrl::CanCut() const
     // Can cut if there's a selection
     long from, to;
     GetSelection(& from, & to);
-    return (from != to) ;
+    return (from != to) && (IsEditable());
 }
 
 bool wxTextCtrl::CanPaste() const