Object PmfNumber
Description:
This object represents one form item of the type: Integer or real number input.
Properties and methods of this object:
| BgColor | The property returns or sets the background color of the window for entering the value of the PmfNumber object |
| EditType | Editing type |
| Format | The property returns or sets the format of the value that will be displayed in the object |
| Min | Minimum value |
| Max | Maximum value |
| StepSize | Setting of the step the value is increased/decreased by by clicking the mouse the spin buttons while editing |
| Subtype | Specifies whether the object displays/inputs integer, real number, date and time or time span |
| TextColor | The property returns or sets the color of the text in the value entry window of the PmfNumber object |
| Value | Pmf object value |
| ValueHorzAlign | The way of horizontal number alignment |
Properties and methods that are common to all objects of the PmfObject type:
Events:
| onEditAccept | Is triggered after the editing is finished and the edited value is saved |
| onFocus | Is triggered if the Pmf object gets or loses focus |
Example1:
Script creates one form item. It is presumed that the oForm object already exists.
JavaScriptSelect and copy to clipboard
var oNmb = oForm.CreateItem("number", "id_nmb");
oNmb.Value = 5;