Multiline - property of the PmfString object
Description:
Enable/disable displaying the text on more than one line.
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.
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.