TdxRangeControlCustomNumericClientProperties.RangeValueType Property
Specifies the actual value type employed by the range control‘s numeric value selection and visualization model.
Declaration
property RangeValueType: Word read; write; default varInteger;
Property Value
Type | Default |
---|---|
Word | varInteger |
Remarks
You can use this property to specify a hexadecimal code corresponding to the required numeric type to which the range control’s SelectedRangeMinValue, SelectedRangeMaxValue, VisibleRangeMinValue, and VisibleRangeMaxValue property values are internally converted. The range control’s numeric value selection and visualization model supports the following variant type codes:
Value (Constant Name) | Hexadecimal Code | Actual Numeric Type |
---|---|---|
varByte | $0011 | Byte |
varDouble | $0005 | Double in Delphi; double in C++Builder (a double-precision (64-bit) floating point value). |
varCurrency | $0006 | Currency (a currency floating-point value). |
varInt64 | $0014 | Int64 in Delphi; __int64 in C++Builder (a 64-bit signed integer value). |
varInteger | $0003 | Integer in Delphi; the int in C++Builder (a 32-bit signed integer value). |
varLongWord | $0013 | LongWord in Delphi; unsigned long in C++Builder. |
varSingle | $0004 | Single in Delphi; float in C++Builder (a single-precision (32-bit) floating point value). |
varShortInt | $0010 | ShortInt in Delphi; signed char in C++Builder. |
varSmallInt | $0002 | SmallInt in Delphi; short in C++Builder (a signed 16-bit integer value). |
varWord | $0012 | Word (an unsigned 16-bit value). |
If the specified variant type constant name or hexadecimal code is not on the supported list, the RangeValueType property value does not change. To identify if the numeric value selection and visualization model supports a specific variant type, you can call the IsRangeValueTypeSupported function.
The default value of the RangeValueType property is varInteger.