Make a checkbox

In making a checkbox, we use the following function.

ui_checkbox_create(x, y, size, label);

Return: Ds_map

Where x and y are the positions checkbox placed, the size is the size of checkbox. If you use macros ui_default, Then the size will be worth 20, And finally we can add a text label by label argument.

soundOn = ui_checkbox_create(32, 100, ui_default, "Enable Sound");

The above line of code is used to create a checkbox labeled "Enable Sound" at a certain position with the default size.

results matching ""

    No results matching ""