]> git.saurik.com Git - wxWidgets.git/commitdiff
deactivate read-only implementation for unicodetextcontrol because it cannot be selec...
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 4 Feb 2006 15:35:06 +0000 (15:35 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 4 Feb 2006 15:35:06 +0000 (15:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/textctrl.cpp

index e5855c0fbb4bd337fc1dd5c185ddc9d1f6b1dbf5..3a6d9020bb459049c5f881124586893fcc4b6fab 100644 (file)
@@ -1109,7 +1109,7 @@ void wxTextCtrl::OnContextMenu(wxContextMenuEvent& event)
         m_privateContextMenu->AppendSeparator();
         m_privateContextMenu->Append(wxID_SELECTALL, _("Select &All"));
     }
-
+    
     if (m_privateContextMenu != NULL)
         PopupMenu(m_privateContextMenu);
 }
@@ -1439,7 +1439,9 @@ bool wxMacUnicodeTextControl::CanPaste() const
 
 void wxMacUnicodeTextControl::SetEditable(bool editable)
 {
-    SetData<Boolean>( 0 , kControlEditTextLockedTag , (Boolean) !editable ) ;
+#if 0 // leads to problem because text cannot be selected anymore
+    SetData<Boolean>( kControlEditTextPart , kControlEditTextLockedTag , (Boolean) !editable ) ;
+#endif
 }
 
 void wxMacUnicodeTextControl::GetSelection( long* from, long* to ) const