IBindingDecimalSlider.MaxValue

Syntax

MaxValue: Decimal;

Description

The MaxValue property determines the MAXVAL parameter value in binding string

Comments

The MAXVAL parameter determines the slider's maximum value. The maximum value should be greater than the minimum value set in the IBindingDecimalSlider.MinValue property.

The MaxValue property value is taken into account if the IBindingDecimalSlider.MaxValueDefined property is set to True. If the MaxValue property value is changed, the IBindingDecimalSlider.MaxValueDefined property is automatically set to True.

Example

This function returns binding string to use value editor as a decimal values slider.

Function CreateDecimalSliderBidning: string;
Var
    BM: IBindingManager;
    Slider: IBindingDecimalSlider;
Begin
    BM := New BindingManager.Create;
    Slider := BM.CreateByUi("DecimalSlider"As IBindingDecimalSlider;
    // Determine that empty values are prohibited
    Slider.Mandatory := True;
    // Determine the minimum and maximum values
    Slider.MinValue := -10E-3M;
    Slider.MaxValue := 10E-3M;
    // Determine change step
    Slider.Step_ := 0.15E-3M;
    // Set default value
    Slider.Value := 0;
    // Return binding string
    Return Slider.AsString;
End Function CreateDecimalSliderBidning;

After executing the example the binding string is obtained to use value editor as a decimal values slider.

See also:

IBindingDecimalSlider