Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Multiline - property of object PmfString

Description:
Enable/disable displaying the text on more than one line.
Syntax:
Long Multiline
Calling:
Setting the propert when the object is created:
oString = oForm.CreateItem("string", "Id", "Title", "Multiline:1;");
Writing the value:
oString.Multiline = 1;
Reading the value:
multi = oString.Multiline;
Values:
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.
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:
Creates a multi-row 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.
Example2:
For multi-row text over the whole area (i.e. no name displayed) see Example1.
Example3:
For multi-row static text note see Example.

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

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice