Allow setting hints for multi-line wxTextCtrl when supported.
Don't prevent people from using hints in wxMSW and wxGTK2, where they work with multiline text controls too, even though they do not work with wxGTK3 nor wxOSX. Closes #14456. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -986,6 +986,11 @@ wxString wxTextCtrl::GetValue() const
|
||||
{
|
||||
wxCHECK_MSG( m_text != NULL, wxEmptyString, wxT("invalid text ctrl") );
|
||||
|
||||
return wxTextEntry::GetValue();
|
||||
}
|
||||
|
||||
wxString wxTextCtrl::DoGetValue() const
|
||||
{
|
||||
if ( IsMultiLine() )
|
||||
{
|
||||
GtkTextIter start;
|
||||
@@ -998,7 +1003,7 @@ wxString wxTextCtrl::GetValue() const
|
||||
}
|
||||
else // single line
|
||||
{
|
||||
return wxTextEntry::GetValue();
|
||||
return wxTextEntry::DoGetValue();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user