TCustomSpinEdit.GetLimitedValue function
Gets the value for the control limited the range in MinValue and MaxValue.
Declaration
function GetLimitedValue(const AValue: Double): Double; overrideArguments
AValue | Value normalized to the range in MinValue and MaxValue. |
Function result
Range-limited value for the control.
Description
GetLimitedValue is implemented to return a
Double
value. This remains because the method is called from widgetset classes for
both TFloatSpinEdit and TSpinEdit, and the method signature cannot be changed
to use the
Integer type desired for the implementation.
Calls the inherited method on entry. GetLimitedValue also ensures that the
return value is valid for the MinInt and MaxInt
constants defined in RTL for the platform / CPU architecture.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
