MaxValue: Double;
MaxValue: double;
The MaxValue property determines value of the MAXVAL parameter in binding string.
The MAXVAL parameter determines slider's maximum value. Maximum value should be greater than 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.
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 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.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.ForeSystem;
…
Shared 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 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;
See also: