Promotic
Login logon

Object PmfString

Description:
This object represents one form item of the type: Text input.
Properties and methods of this object:
BgColorThe property returns or sets the background color of the window for entering the value of the PmfString object
EditTypeEditing type
FormatThe property returns or sets the format of the value that will be displayed in the object
MultilineEnable/disable displaying the text on more than one line
SubtypeText inputbox type
TextColorThe property returns or sets the color of the text in the value entry window of the PmfString object
ValuePmf object value
ValueHorzAlignThe way of horizontal text alignment
ValueVisibleThe property returns or sets the visibility of the window for entering the value of the PmfString object
Properties and methods that are common to all objects of the PmfObject type:
AddEvent()Registers a function into the specified event
BodyFontFont of the Body area of the Pmf object
BodyHeightIniInitial height of the Body area
BodyHeightModeThe way of changing the Body area height
BodyWidthIniInitial width of the Body area
BodyWidthModeThe way of changing the Body area width
EnabledEnable/disable editing of values
FormReturns PmForm object
IdPmf object identifier
ParentReturns reference to the parent Pmf object
PrivateDataPrivate value of the object
RemoveEvent()Unregisters the function in the specified event
TitleDisplayed name of the Pmf object
TitleFontFont of the Title area of the Pmf object
TitlePosPosition of the Title area of the Pmf object
TypePmf object type
VisibleVisibility of the Pmf object
Events:
onEditAcceptIs triggered after the editing is finished and the edited value is saved
onFocusIs triggered if the Pmf object gets or loses focus
Note:
- The object can be created by method PmForm.CreateItem("string", ...).
- This object is functional also in Web panels.
Example1:
Script creates one form item. It is presumed that the oForm object already exists.
JavaScriptSelect and copy to clipboard

var oStr = oForm.CreateItem("string", "id_str");
oStr.Value = "Test";

History:
Pm8.03.08: Created
PROMOTIC 9.0.34 SCADA system documentation MICROSYS, spol. s r.o.

Send page remark Contact responsible person
© MICROSYS, spol. s r.o.Update cookies preferences