IBindingIntegerSlider.MaxValue

Syntax

MaxValue: Integer;

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 IBindingIntegerSlider.MinValue property.

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

Example

This function returns binding string to use value editor as an integer values slider.

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

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

See also:

IBindingIntegerSlider