added wxTextCtrl::IsEmpty()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -821,6 +821,14 @@ wxFontEncoding wxTextCtrl::GetTextEncoding() const
|
||||
return enc;
|
||||
}
|
||||
|
||||
bool wxTextCtrl::IsEmpty() const
|
||||
{
|
||||
if ( IsMultiLine() )
|
||||
return gtk_text_buffer_get_char_count(m_buffer) != 0;
|
||||
|
||||
return wxTextCtrlBase::IsEmpty();
|
||||
}
|
||||
|
||||
void wxTextCtrl::DoSetValue( const wxString &value, int flags )
|
||||
{
|
||||
wxCHECK_RET( m_text != NULL, wxT("invalid text ctrl") );
|
||||
|
Reference in New Issue
Block a user