I'm currently busy with my PAT (Practical Assessment Task) and I'm trying to figure out how to make my TMemo similar to search bars on the web. For Example: "|Enter Search or web address". I want the "|"or vertical bar or whatever you call it to move to the beginning of the TMemo when I click on it and I want the "Enter Search or web address" to stay there when there is nothing that is typed, but once I type it has to disappear. I hope this makes sense, because it's really hard to explain. Just look at your usual browser search bar and start typing and you'll see what I mean. If there is anyone who can give a code that will be similar to this, I will greatly appreciate it, because I am stumped.
CodePudding user response:
Use a TEdit and fill out the property TextHint to archive what you want. https://docwiki.embarcadero.com/Libraries/Alexandria/en/Vcl.StdCtrls.TCustomEdit.TextHint