API:FMX.Edit.TEdit.TextPrompt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property TextPrompt: string read GetPromptText write SetPromptText default 0;

C++

__property TextPrompt = {default=0};

Properties

Type Visibility Source Unit Parent
property published
FMX.Edit.pas
FMX.Edit.hpp
FMX.Edit TEdit

Description

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

FMX.Edit.TEdit.TextPrompt inherits from FMX.Edit.TCustomEdit.TextPrompt. All content below this line refers to FMX.Edit.TCustomEdit.TextPrompt.

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