IBindingFloatSlider.MaxValue

Syntax

MaxValue: Double;

Description

The MaxValue property determines value of the MAXVAL parameter 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 IBindingFloatSlider.MinValue property.

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

Example

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

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

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

See also:

IBindingFloatSlider