Update cookies preferences
Promotic

BodyWidthMode - property of the PmfObject object

Description:
The way of changing the width of the Body area of the Pmf object.
The Body area of the Pmf object is the area where the item value is displayed. For example for the PmfString object it is the area for entering number.
Syntax:
String BodyWidthMode
Values:
const - The width will be constant and will not by affected by changing the form window size.
This is the default value for item: PmfNumber, PmfBool, PmfEnum, PmfButton, PmfSepar, PmfLayout.
resize - The width will be changed by changing the size of the form window.
This is the default value for item: PmfString, PmfTable, PmfTree and system layouts $root and $main.
This value cannot be set for object: PmfBool.
content - The width will change automatically according to the content size (e.g. according to the size of the text).
This value can be set only for object: PmfButton.
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:
Example:
JavaScriptSelect and copy to clipboard

var oString = oForm.CreateItem("string", "IdStr1", "Title", "BodyWidthMode:resize;");
var sBodyHeightMode = oString.BodyWidthMode;   // Reading from the property
oString.BodyWidthMode = "resize";   // Writing into the property

History:
Pm9.00.25: New property value BodyWidthMode: content.
Pm8.03.15: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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