Delete an tab item

To remove a tab item on a tab, we can also use the following functions.

ui_item_delete (control, index);

Return: True if successful

Argument control is the handle of ui_tab_create(...); function, While the item is an item index tab you want to delete.

tabMenu = ui_tab_create (16, 64, 320, 32, 256);
ui_item_add (tab, "Armor");
ui_item_add (tab, "Weapon");
ui_item_add (tab, "Item");

ui_item_delete (tabMenu, 1);

The above line of code is used to delete tab item in index-1 that is tab "Weapon".

results matching ""

    No results matching ""