Set the value

We can adjust the value through the following functions.

ui_range_set_value (control, value);

Return: True if successful

Argument control is the handle of ui_range_create (...); function, value is the value we want to set in the form of real numbers. Value must be greater than or equal to 0 and must be less than or equal to the maximum limit of the range bar.

volumeBar = ui_range_create (32, 32, 320, 32);
ui_range_set_value (volumeBar, 50);

Set the value of volumeBar range bar to a value of 50.

results matching ""

    No results matching ""