Auto clear default text in a TEdit

1.1k views Asked by At

I have a few TEdits on my form. When created they have default text in a gray font color. (e.g. "Surname" and "Name") See example below:

enter image description here

Their on click events causes the default text to be cleared and their font color to be set to black.

enter image description here

My Problem: When I use the tab key to switch between the TEdits the onClick event will not triggered so the TEdit will not be cleared and the font color will stay grey.

Any suggestions on how I can fix this will be appreciated!

0

There are 0 answers