Description
You can use a progress bar to indicate the progress of a lengthy operation, such as an installation program that copies a large number of files. The progress bar is a horizontal or vertical rectangle that is gradually filled with the system highlight color as the operation progresses.
Usage
Select the HProgressBar control or the VProgressBar control from the Insert menu or the Controls dropdown toolbar to add a progress bar control to a window. You can set the range and current position of the progress bar in the Property sheet as you would for a scrollbar.
Properties
Progress bar properties include the following:
|
Property
|
Data type
|
Description
|
|
SetStep
|
Integer
|
Specifies a step increment for the progress bar. The default is 10
|
|
SmoothScroll
|
Boolean
|
Specifies that the scroll bar should display progress in a smooth scrolling bar instead of the default segmented bar
|
Functions
Progress bar functions include the following:
|
Function
|
Description
|
|
OffSetPos
|
Advances the progress bar's current position by the increment specified by the function's argument and redraws the bar to reflect the new position
|
|
SetRange
|
Sets the upper and lower limits of the progress bar's range and redraws the bar to reflect the new limits. The default range is 0 to 100
|
|
StepIt
|
Advances the progress bar's current position by the value of the SetStep property and redraws the bar to reflect the new position. The default increment is 10
|
|