Removes a tab from a tab control by its index.
Takes tabControl (Int) and index (Int).
Returns 1 on success, 0 if index invalid or tab control not found.
BGI GUI
Parameters & Returns
Parameters
tabControlInt
indexInt
Returns
Int
Quick Summary
Removes a tab from a tab control by its index.
Takes tabControl (Int) and index (Int).
Returns 1 on success, 0 if index invalid or tab control not found.
Technical Exegesis...
Removes a tab from a tab control by its 0-based index. Searches gizmoMap for the tabControl ID. Gets current tab count with TabCtrl_GetItemCount for validation. Checks if index is valid (>= 0 and < tabCount). If valid, calls TabCtrl_DeleteItem to remove the tab. Returns 1 on success, 0 if index invalid or tab control not found.
This function deletes a single tab from the control. index is 0-based position (0 = first tab, 1 = second tab, etc.).
Removes a tab from a tab control by its 0-based index. Searches gizmoMap for the tabControl ID. Gets current tab count with TabCtrl_GetItemCount for validation. Checks if index is valid (>= 0 and < tabCount). If valid, calls TabCtrl_DeleteItem to remove the tab. Returns 1 on success, 0 if index invalid or tab control not found.
This function deletes a single tab from the control. index is 0-based position (0 = first tab, 1 = second tab, etc.). After removal, tabs at higher indices shift left by one (index 2 becomes index 1, index 3 becomes index 2, etc.). Validates index before deletion to prevent errors. Use for closing documents, removing unwanted tabs, or dynamic tab management. If removed tab was selected, selection behavior depends on Windows implementation (typically selects adjacent tab).