TdxRangeControlCustomClientProperties.GetNearestNormalizedAcceptableValue(Double) Method
Returns the nearest selectable value (as the corresponding range control‘s viewport coordinate) from the specified range control’s viewport coordinate.
Declaration
function GetNearestNormalizedAcceptableValue(const AValue: Double): Double; virtual;
Parameters
Name | Type |
---|---|
AValue | Double |
Returns
Type |
---|
Double |
Remarks
Normally, this function supports the internal infrastructure and is not intended to be used directly from your code. The GetNearestNormalizedAcceptableValue function is called internally by the range control when an end-user selects a value either by dropping the dragged selection thumb or clicking within the control’s area. This function is called to ensure selection of a valid value for the current data range selection and visualization model.
The GetNearestNormalizedAcceptableValue function returns the value passed as the AValue parameter without any changes, which indicates that the base data range model does not set any specific rules for end-user selection in the range control. Specific data range models implemented by the TdxRangeControlCustomClientProperties class descendants may impose certain limitations on end-user selection by overriding this function.