Applies to

SingleLineEdit controls


The Placeholder property specifies a short description for the expected value of the input field. The Placeholder value can be used as a text label or hint; hence can help to reduce the number of UI controls.

You will need to run the application to see the Placeholder value, and the Placeholder value will not be displayed 1) if the Text property is set (the Text value will be displayed first); or 2) when the input field has focus.


In a painter

To specify the placeholder for a SingleLineEdit control:

  • Enter the desired text in the Placeholder field on the General page of the control's Properties view.

In scripts

The Placeholder property takes a string value.

The following line sets the placeholder value for a SingleLineEdit control:

sle_1.placeholder = "Input the user name here"