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
- TW3CustomControl
- TW3MovableControl
- TW3Component
- TW3TagObj
Properties |
---|
Active |
Total |
Value |
Properties
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.
Total
Specifies maximum value for progress bar.
property Total: Integer read FTotal write setTotal;
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;