IRibbonProgressBar.Value

Syntax

Value: Integer;

Description

The Value property determines the value displayed on the progress bar.

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;
    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 is created on the ribbon panel on clicking the button. The following properties are determined for the progress bar: current value, maximum and minimum values, operating mode, and control length in pixels.

See also:

IRibbonProgressBar