Sets a duration for a progress bar control or sets the start and end position for a trackbar control.
Progress bar and trackbar controls
controlname.SetRange ( startpos, endpos )
Argument |
Description |
---|---|
controlname |
The name of the progress bar or trackbar |
startpos |
Integer indicating the initial position of the range |
endpos |
Integer indicating the terminal position of the range |
Integer. Returns 1 if it succeeds and -1 if there is an error.
The default range for the progress bar controls is 0 to 100.
This statement sets a range of 1 to 10 for a progress bar control:
HProgressBar.SetRange ( 1, 10 )