Option to show hint when setting the text programatically

I wanted to have the hint show up if I set the text programatically but it wasn't implemented. So I wrote this method.