TextHint is the TEdit property which let's you display a greyed text hint inside the textbox, when the textbox is empty.
I want to place the same kind of hint in a TMemo, or TRichEdit, since the TEdit component does not allow multiline.
How can I use a TextHint inside a multiline text control in Delphi? The TextHint property actually exists in TMemo and TrichEdit components, but it seems to have no effect.
Thank you in advance.
The TextHint
property is implemented using the EM_SETCUEBANNER
message. Windows itself simply does not support that message on those UI controls:
You cannot set a cue banner on a multiline edit control or on a rich edit control.
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