FMX.Edit.TCustomEdit.TextPrompt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property TextPrompt: string read GetPromptText write SetPromptText;

C++

__property System::UnicodeString TextPrompt = {read=GetPromptText, write=SetPromptText};

Properties

Type Visibility Source Unit Parent
property public
FMX.Edit.pas
FMX.Edit.hpp
FMX.Edit TCustomEdit

Description

A hint or message to be displayed when the Text property is empty.

Use TextPrompt to cue the user about the kind of entry that is expected in the text field. The TextPrompt is grayed (like a watermark), cannot be scrolled at run time, and is cleared from the entry field as soon as the user begins to type into the edit field.

The following image contains a design-time preview of setting the TextPrompt property:

TextPromptWatermark.PNG

See Also