Fix several bugs in generic text entry hints implementation.
The text controls contents and colour was not updated correctly in several situations (see #12475). The old code was completely wrong as it didn't store the actual value of the control at all and so could never work. Do store and update it now and show the hint if and only if the real contents is empty. Also handle "text updated" event to correctly update the hint when the control becomes [non-]empty. Closes #12475. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -279,6 +279,10 @@ private:
|
||||
|
||||
// hint-related stuff, only allocated if/when SetHint() is used
|
||||
wxTextEntryHintData *m_hintData;
|
||||
|
||||
// It needs to call our Do{Get,Set}Value() to work with the real control
|
||||
// contents.
|
||||
friend class wxTextEntryHintData;
|
||||
};
|
||||
|
||||
#ifdef __WXUNIVERSAL__
|
||||
|
Reference in New Issue
Block a user