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:
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.
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