]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow Clear() to clear the control even when it is not editable.
authorDavid Elliott <dfe@tgwbd.org>
Thu, 15 Jan 2004 20:12:29 +0000 (20:12 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Thu, 15 Jan 2004 20:12:29 +0000 (20:12 +0000)
(patch from Kevin Hock)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/textctrl.cpp
src/mac/textctrl.cpp

index a28eb9241c6e5450c5a99eee2c2ef37672523af0..ad911c398783ed0ab2b4de559f92f4ef80161887 100644 (file)
@@ -1316,10 +1316,6 @@ void wxTextCtrl::AppendText(const wxString& text)
 
 void wxTextCtrl::Clear()
 {
-    if ( !IsEditable() )
-    {
-        return ;
-    }
     if ( !m_macUsesTXN )
     {
         ::SetControlData((ControlHandle)  m_macControl, 0, ( m_windowStyle & wxTE_PASSWORD ) ? kControlEditTextPasswordTag : kControlEditTextTextTag , 0 , (char*) ((const char*)NULL) ) ;
index a28eb9241c6e5450c5a99eee2c2ef37672523af0..ad911c398783ed0ab2b4de559f92f4ef80161887 100644 (file)
@@ -1316,10 +1316,6 @@ void wxTextCtrl::AppendText(const wxString& text)
 
 void wxTextCtrl::Clear()
 {
-    if ( !IsEditable() )
-    {
-        return ;
-    }
     if ( !m_macUsesTXN )
     {
         ::SetControlData((ControlHandle)  m_macControl, 0, ( m_windowStyle & wxTE_PASSWORD ) ? kControlEditTextPasswordTag : kControlEditTextTextTag , 0 , (char*) ((const char*)NULL) ) ;