IRibbonSlider.Value

Syntax

Value: Integer;

Description

The Value property determines the value specified in the control.

Comments

This value must be within the range [Minimum; Maximum].

Example

Executing the example requires a form, a button named Button1 on it and the Ribbon component named Ribbon1. A tab and a panel are created on the ribbon of the Ribbon1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    RPanel: IRibbonPanel;
    RSlider: IRibbonSlider;
Begin
    RPanel := Ribbon1.ActiveCategory.Panels.Item(0);
    RSlider := New RibbonSlider.Create;
    RPanel.Elements.Add(RSlider);
    RSlider.InnerWidth := 200;
    RSlider.Minimum := 0;
    RSlider.Maximum := 100;
    RSlider.Orientation := RibbonElementOrientation.Horizontal;
    RSlider.Value := 10;
    RSlider.VisibleButtons := True;
End Sub Button1OnClick;

Clicking the button creates a slider on the ribbon panel. The following parameters will be determined for the slider: the current value, minimum and maximum values, control length in pixels and control orientation.

See also:

IRibbonSlider