Basically, as the title states...is it possible to change the progressbar's total from 100 to something high or lower? For instance, if I run a 60 second timer with a progress bar it starts at 60 of 100 when I want it to be "full" at 60.
This is a practical application of the rule of three.
You have a timer that goes from 0 to 60, and you want to represent that in a bar that goes from 0 to 100. So you apply the rule like this:
If 60 (your max original value) is translated to 100 (the max progressbar value), then original value X is translated to X*100/60. (check it. For example, If X is 30, it should give 50 in the bar)
To avoid doing that, you could also define a Max variable, so, you only change 1 value, something like this:
B4X:
Dim TheTime As Int
Dim tMax As Int
TheTime = 60
tMax = TheTime
...
...
Sub Timer_Tick
pbTimeLeft.Progress = (100 * TheTime) / tMax
TheTime = TheTime - 1
End Sub