Limiting the number of characters

You can set the maximum limit of characters is entered with the following function.

ui_textbox_set_maxchar(control, maxchar);

Return: True if successful

Where maxchar is the limit amount in real numbers.

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

Set the maximum limit to 10 characters for textboxUsername textbox.

results matching ""

    No results matching ""