Set the maximum limit

To set a limit on the range bar we use the following function.

ui_range_set_max (control, maxval);

Return: True if successful

Argument control is the handle of ui_range_create(...); function, While maxval is a limit that we want to set in the form of real value.

volumeBar = ui_range_create (32, 32, 320, 32);
ui_range_set_max (volumeBar, 150);

Set the maximum limit on the volumeBar range bar so the distance value is between 0 and 150.

results matching ""

    No results matching ""