Make a textbox

To create a textbox we simply call the following function.

ui_textbox_create(x, y, width, height, label);

Return: Ds_map

Where x and y are the position of the textbox is placed, the width is the width of the textbox. If you use macros ui_default it would be worth 320. The height is the height textbox. If you can use macros ui_default then high will adjust the width of the text. And finally we can add a text label to label argument.

TextboxUsername = ui_textbox_create(32, 24, 128, ui_default, "Username");

The above line of code is used to create a textbox labeled "Username" at certain positions with a width of 128 pixels and adjust the height to the height of the textbox text.

results matching ""

    No results matching ""