← Back to Index

TFlexFMXProgressBar

Bootstrap-style horizontal progress bar with multiple styles and animation support.

Key Properties

Value: Single
Current progress value (0 to Max).
Min / Max: Single
Minimum and maximum range values (default: 0-100).
ShowText: Boolean
Display percentage text inside bar.
BarColor: TAlphaColor
Progress bar fill color.
BackgroundColor: TAlphaColor
Background track color.
Striped: Boolean
Show diagonal stripe pattern.
Animated: Boolean
Animate stripes (requires Striped = True).
BarHeight: Single
Height of the progress bar.
CornerRadius: Single
Rounded corners radius.

CSS Classes

Usage Examples

Basic Progress

ProgressBar1.Max := 100;
ProgressBar1.Value := 45;
ProgressBar1.ShowText := True;

Success Bar

ProgressBar1.FlexFMXCSS.Text := 'progress-bar-success';
ProgressBar1.Value := 100;

Animated Striped

ProgressBar1.FlexFMXCSS.Text := 'progress-bar-striped progress-bar-animated';
ProgressBar1.Striped := True;
ProgressBar1.Animated := True;

Download Progress

procedure UpdateDownloadProgress(BytesReceived, TotalBytes: Int64);
begin
  ProgressBar1.Max := TotalBytes;
  ProgressBar1.Value := BytesReceived;
end;

Notes

← Back to Index