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:
@@ -662,6 +662,15 @@ void wxTextCtrl::SetWindowStyleFlag(long style)
|
||||
// set/get the controls text
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
bool wxTextCtrl::IsEmpty() const
|
||||
{
|
||||
// this is an optimization for multiline controls containing a lot of text
|
||||
if ( IsMultiLine() && GetNumberOfLines() != 1 )
|
||||
return false;
|
||||
|
||||
return wxTextCtrlBase::IsEmpty();
|
||||
}
|
||||
|
||||
wxString wxTextCtrl::GetValue() const
|
||||
{
|
||||
// range 0..-1 is special for GetRange() and means to retrieve all text
|
||||
|
Reference in New Issue
Block a user