<< Click to Display Table of Contents >> Navigation: Object Reference > Palette Objects > Numeric Field |
Tutorial video about the Numeric Field
The numeric field object is designed to show numbers on the screen. It can be customized like any other object using it's properties.
The numeric field has a lot of common properties. See here for a description of them. Here only the numeric field specific properties are described.
Choose between normal decimal representation of the displayed number or a scientific exponential representation.
Examples:
Decimal value: 15, scientific notation / floating-point representation: 1.5e+1
Decimal value: 0.1, scientific notation / floating-point representation: 1.0e-1
Decimal value: 32767, scientific notation / floating-point representation: 3.2767e+4
Default value: Decimal
Possible values: Decimal or Exponential
It is possible to display zeros (0) before the actual value of the numeric field.
This is useful if always a fixed number of digits shall be displayed (e.g. when showing the time: without leading zeros 9:4, with leading zeros: 09:04).
The number of zeros that are displayed is dependent on the width of the object. The whole available space will be filled.
Default value: Disabled
Possible values: Disabled or enabled
If this property is enabled, the value 0 will not be displayed in the numeric field.
This could be useful if e.g. only a deviation shall be displayed but nothing if the value is right at target.
Default value: Disabled
Possible values: Enabled or Disabled
A text that will be displayed before the numerical value.
A text that will be displayed after the numerical value.
When this is checked, the scaling, offset and suffix properties of the variable will be used to modify the displayed variable value.
Two offsets and a scale value can be defined that will be used in the following way:
displayed value = (original value + Offset 1) * scale + Offset 2
offsets:
Default value: 0.0
Possible values: -2147483648.0 ... 2147483647.0
scale:
Default value: 1.0
Possible values: -2147483648.0 ... 2147483647.0
Values can be entered in decimal form or in scientific notation / floating-point representation.
The number of decimals property allows to define how many digits will be displayed behind the decimal point.
Note that values behind the decimal point can only be displayed if the Scale property is not 1.0.
Default value: 1
Possible values: 0 ... 10
The following events can be configured for the numeric field object:
•OnOpenForInput
•OnEnabledWithFocus
•OnEnabledWithoutFocus
•OnValueChange
•OnEnterValue
•OnEnterNewValue
•OnEscape
See here for the descriptions of all event and possible actions that can be assigned.