Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Multiline - property of object PmFormItemString

Description:
Enable/disable displaying the text on more than one line.
Syntax:
Multiline As Integer
Calling:
Set the propert when the item is created:
oFormItem = oForm.CreateItem("string", "Id", "Title", "Multiline:1;");
Writing the value:
oFormItem.Multiline = 1;
Reading the value:
multi = oFormItem.Multiline;
Values:
0 (default) - Single-row text inputbox.
1 - Multi-row text inputbox. In this inputbox a new row can be created 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 for Web Panels. It is not functional in InternetExplorer8 and lower.

Example1:
Creating a multi-row text. Example for JavaScript language:
var oItem = oForm.CreateItem("string", "addr", "Address", "Multiline:1;");
oItem.Value = "Whitestreet 145\nNew York\nUSA"; //Characters "\n" create 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.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice