IBindingIntegerSlider.MaxValue

Fore Syntax

MaxValue: Integer;

Fore.NET Syntax

MaxValue: integer;

Description

The MaxValue property determines value of the MAXVAL parameter in binding string.

Comments

The MAXVAL parameter determines slider's maximum value. Maximum value should be greater than 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.

Fore 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 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.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.ForeSystem;

Shared 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 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;

See also:

IBindingIntegerSlider