Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Object PmfLayout

Description:
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 Reading or writing private value into 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.
Note:
- The object can be created by the 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.
Example1:
Script in the PmgForm.onFormLoad event creates PmfLayout with one form item in it.
JavaScriptSelect and copy to clipboard

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

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