6.5 .hinttext

This attribute can be used to add a placeholder or hint text to an edittext or poptext object, which is displayed if the object has no content set yet. The poptext object must have the edittext style set.

Definition

  • Data type

    string

  • Access

    get, set

  • changed event

    yes

Attention:

If there is a space as content, the placeholder or hint text will not be displayed, this also is the case some formats.

Particularities:

This attribute is supported only by Windows and Qt.

Remark for Windows:

On Microsoft Windows the attribute is currently supported on the following objects:

The hint text is displayed when the object does not have the focus and the content is empty.

Remark for Qt:

If the .multilineattribute of the edittext object has the value true and layout attributes (e.g..alignment, .xmargin, .ymargin etc.) are set, these are ignored when the hint or placeholder text is displayed. The hint or placeholder text is always attached to the top left.

Availability

Since IDM version A.06.03.a