Forbid setting hints for multi-line text controls.

This doesn't work anyhow, so make it explicit by asserting if an attempt to do
it is made. And document this.

Also add a test of SetHint() to the text sample to verify it still works.

Closes #14456.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-07-10 23:52:10 +00:00
parent 52ae1e9018
commit 7dd65e5abe
4 changed files with 21 additions and 1 deletions

View File

@@ -734,6 +734,9 @@ public:
wxTextEntry::SetValue(value);
}
// wxTextEntry overrides
virtual bool SetHint(const wxString& hint);
// wxWindow overrides
virtual wxVisualAttributes GetDefaultAttributes() const
{