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 f
On Microsoft Windows the attribute is currently supported on the following objects:
-
edittext object if the attributes .multiline and .options[opt_rtf] have the value false
-
poptext object if the attribute .style has the value edittext or listbox
The hint text is displayed when the object does not have the focus and the content is empty.
Remark f
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