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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.