I was looking for something similar but was not sure how to make it work. Then I happened upon this post and tried the same thing but with the text box behind the button and I made the button transparent and the text box background colour set to "System Button Face".
Works like a charm! :)