Sets minimum and maximum values.
Use this function to define the progress bar range by setting minimum and maximum values.