W3ProgressBar



TW3ProgressBar


Represents class for progress bar control.

This component is a composition of two controls in one (TW3ProgressBar and TW3ProgressMeter), and both may be styled separately.


Unit: SmartCL.Controls.ProgressBar.pas

Hierarchy
TObject
TW3TagObj
TW3Component
TW3MovableControl
TW3CustomControl
TW3ProgressBar
Properties
Property-icon.png Active
Property-icon.png Total
Property-icon.png Value

Properties

Property-icon.png Active

Specifies whether progress meter will be animated.

property Active: Boolean read FActive write SetActive;

Remarks:

Changing this property switch AnimationPlayState property of TW3ProgressMeter DOM object. Some Themes include styling for Active (animated) state.

Property-icon.png Total

Specifies maximum value for progress bar.

property Total: Integer read FTotal write setTotal;

Property-icon.png Value

Specifies value of progress meter. If Value is same as Total, meter will fully occupy control.

property Value: Integer read FValue write setpos;

Example:

W3ProgressBar1.Total:= MyDataCount;
for i:= 0 to W3ProgressBar1.Total - 1 do
begin  // Our heavy task here  
W3ProgressBar1.Value:= W3ProgressBar1.Value + 1;
end;