Is there any way to add a placeholder text to an edit
?
My only idea is to always manually set the color and the text of the given edit
in its OnChange
event, but it seems to be a bit tedious to me.
Any other suggestions?
What you are looking for is handled by the TEdit.TextHint
property. Note that it only works on XP and later with Visual Themes/Styles enabled for the app.
In case anyone got here like me through a web search, in cross-platform versions of Delphi using FMX, the placeholder display is handled by TEdit.TextPrompt.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With