Setting the range for a progress bar¶
SetProgressRange() |
Set the range for a progress bar |
SYNTAX
SetProgressRange(graphic_id [ , min_value [, max_value]])
Set the range for a progress bar.
graphic_id |
The identifier of the graphic. |
min_value
max_value
|
The minimum and maximum values for the progress bar. The default values for min_value and max_value are 0 and 100 respectively. |
The SetProgressPosition() function is used to set and display values for the progress bar.
A progress bar’s range represents the entire duration of the operation, and the current position represents the progress that the application has made toward completing the operation. The window procedure uses the range and the current position to determine the percentage of the progress bar to fill with the highlight colour.
NOTES
Because the range and current position values are expressed as unsigned integers, the highest possible range value is 65,535. This is a limitation imposed by Microsoft.
EXAMPLE
+graphic ProgBar1 at 9,1 {
type = GT_PROGRESS
}
SetProgressRange(ProgBar, 0 ,200)
RELATED TOPICS |