Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Text Prompt Delphi XE7

Before I file a QC report to Embacadero, I wanted to know if there is something simple I am overlooking in regards to TEdit's and setting the 'TextPrompt' property.

Whenever trying to set TextPrompt of any TEdit, the Prompt does not show. Am I missing a step or is there a simple work around to this bug that anyone knows of currently?

Delphi XE7 for iOS ( FMX )

like image 263
ThisGuy Avatar asked Jan 09 '23 20:01

ThisGuy


1 Answers

You can also just stick a TLabel inside of your TEdit and align it to Content or Client. Set it's HitTest property to false. In the onChange event show it or hide it based on if the Text property is blank. TextPrompt had issues in previous versions too so I used this workaround instead.

like image 65
FMXExpress Avatar answered Jan 17 '23 04:01

FMXExpress