Promotic

Multiline - property of the PmfString object

Description:
Enable/disable displaying the text on more than one line.
Syntax:
Long Multiline
Values:
0 (default) - Single-row text inputbox.
1 - Multilined text inputbox. Preconfiguration selection ValueHeightIni=5. In this inputbox a new line can be entered by the Enter key.
Note:
Property access for read and write.
 
It is possible to write into this property only if the PmForm window has not been opened yet.
This property is also functional in Web panels.
See also:
- PmfString.Subtype (property)
- PmgString.Multiline (property)
Example1:
JavaScriptSelect and copy to clipboard

var oString = oForm.CreateItem("string", "idStr1", "Title", "Multiline:1;");
var nMultiline = oString.Multiline;   // Reading from the property
oString.Multiline = 1;   // Writing into the property
Example2:
Creates a multiline text:
JavaScriptSelect and copy to clipboard

var oItem = oForm.CreateItem("string", "addr", "Address", "Multiline:1;");
oItem.Value = "Whitestreet 145\\nNew York\\nUSA";   // Character "\n" creates new rows.
Example3:
For multi-row text over the whole area (i.e. no name displayed) see Example2.
Example4:
For multi-row static text note see Example2.

History:
Pm8.03.15: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.