]> git.saurik.com Git - wxWidgets.git/commit
Fix several bugs in generic text entry hints implementation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Sep 2010 22:10:14 +0000 (22:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Sep 2010 22:10:14 +0000 (22:10 +0000)
commita7aeddacf9dfcb9dca64fccb5f65f387bcff0fb2
tree1eb8840c642713c4db475ae28f512f1356d0e412
parent6eb6062821301cd9f3ec6907af98567c2c0b8bce
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
include/wx/textentry.h
src/common/textentrycmn.cpp