Set the switch status

We can set the switch 'On' or 'Off'.dengan following functions.

ui_set_checked (control, checked);

Return: True if successful

Argument control is the handle of ui_switch_create(...); function, and checked is a boolean (true or false).

fullscreen = ui_switch_create (32, 256, 80, 32, "Fullscreen");
ui_set_checked (fullscreen, true);

The above line of code used to switch on the fullscreen switch.

results matching ""

    No results matching ""