Object PmfLayout

This object represents one form item of the type: "Area for other Pmf objects".
Properties and methods of this object:
CreateItem Creates a single form subitem in the area defined by parent PmfLayout object
GetItem Returns Pmf object (i.e. existing form item)
GetItems Returns an array of Pmf objects.
Subtype Specifies whether the nested objects are arranged vertically or horizontally
RemoveItem Removes Pmf object (i.e. existing form item)
RemoveItems Removes items of the Pmf object.
Properties and methods that are common to all objects of the PmfObject type:
BodyHeightIni Initial body height
BodyHeightMode Changing body height
BodyWidthIni Initial body width
BodyWidthMode Changing body width
Enabled Enable/disable editing of values
Id Pmf object identifier
PrivateData Private value of the object
Title Displayed name of the Pmf object
TitlePos Position of displayed Pmf object name
Type Pmf object type
Visible Sets the visibility/invisibility of Pmf object
- The object can be created by method PmForm.CreateItem("layout", ...).
- This object is functional also in Web panels.

The appearance of this object can be defined by means of the Subtype property.
Script in the PmgForm.onFormLoad event creates PmfLayout with one form item in it.
JavaScriptSelect and copy to clipboard

var oForm = pMe.Form;
var Layout = oForm.CreateItem("layout", "Lay1", null, "Subtype:horz;");
var oStr = Layout.CreateItem("string", "id_str");

Pm9.00.00: Created
PROMOTIC 9.0.16 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