Multiline - property of object PmfString
Enable/disable displaying the text on more than one line.
Setting the propert when the object is created:
Writing the value:
oString.Multiline = 1;
Reading the value:
multi = oString.Multiline;
0 (default) - Single-row text inputbox.
1 - Multi-row text inputbox. Preconfiguration option ValueHeightIni=5. In this inputbox a new row can be entered by the Enter key.
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.
Creates a multi-row text:
var oItem = oForm.CreateItem("string", "addr", "Address", "Multiline:1;");
oItem.Value = "Whitestreet 145\nNew York\nUSA"; //Character "\n" creates new rows.
For multi-row text over the whole area (i.e. no name displayed) see Example1
For multi-row static text note see Example