IRibbonProgressBar.Value

Fore Syntax

Value: Integer;

Fore.NET Syntax

Value: Integer;

Description

The Value property determines the value that is displayed on the indicator.

Comments

This value should be within [Minimum; Maximum] range.

Example

Executing the example requires a form, a button named Button1 positioned 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;
    RProgress: IRibbonProgressBar;
Begin
    RPanel := Ribbon1.ActiveCategory.Panels.Item(0);
    RProgress := New RibbonProgressBar.Create;
    RPanel.Elements.Add(RProgress);
    RProgress.InnerWidth := 150;
    RProgress.Mode := RibbonProgressBarMode.Normal;
    RProgress.Minimum := 0;
    RProgress.Maximum := 100;
    RProgress.Value := 10;
End Sub Button1OnClick;

A progress bar (indicator) is created on the ribbon panel on clicking the button. The following properties are defined for the indicator: current value, the maximum and minimum values, operating mode, and control length in pixels.

See also:

IRibbonProgressBar