Giving the limit values
We can put a limit values to range bar, so not exceed a certain value. To give value limits, we can use the following functions.
ui_range_set_limit (control, limit);
Return: True if successful
Argument control is the handle of ui_range_create (...);
function, While the limit is the limit of the value we want to set in the form of real values.
volumeBar = ui_range_create (32, 32, 320, 32);
ui_range_set_max (volumeBar, 150);
ui_range_set_limit (volumeBar, 120);
Impose limits on the volumeBar range bar so the value can not be more than 120 even though the maximum limit is 150.