Allow Clear() to clear the control even when it is not editable.

(patch from Kevin Hock)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2004-01-15 20:12:29 +00:00
parent 6463b9f539
commit f1ff3d4a3e
2 changed files with 0 additions and 8 deletions

View 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) ) ;