]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/textctrl.cpp
Added dialog tabbing to wxX11.
[wxWidgets.git] / src / motif / textctrl.cpp
index ce98355f14467e143f7180b3a490fe9bca16cd5c..fe72b88437e85d413dfc78b1c84ada12432144cd 100644 (file)
@@ -304,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
@@ -665,7 +665,7 @@ void wxTextCtrl::ChangeBackgroundColour()
             XmNhorizontalScrollBar, &hsb,
             XmNverticalScrollBar, &vsb,
             NULL);
-        wxColour backgroundColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE);
+        wxColour backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
         if (hsb)
             DoChangeBackgroundColour((WXWidget) hsb, backgroundColour, TRUE);
         if (vsb)