bgiInsertTab

Inserts a new tab at a specific index in a tab control. Takes tabControl (Int), text (String), name (String), and index (Int). Returns the index on success, -1 if tab control not found.

BGI GUI

Parameters & Returns

Parameters

tabControl Int
text String
name String
index Int

Returns

Int

Quick Summary

Inserts a new tab at a specific index in a tab control. Takes tabControl (Int), text (String), name (String), and index (Int). Returns the index on success, -1 if tab control not found.

Technical Exegesis...

Inserts a new tab at a specific index position in a tab control. Searches gizmoMap for the tabControl ID. Creates TCITEM structure with TCIF_TEXT mask and pszText pointing to text parameter. Inserts tab with TabCtrl_InsertItem at specified index position. Returns the index on success, -1 if tab control not found.

This function inserts a tab at any position (not just at end like bgiAddTab). name parameter currently unused (reserved for future use).

Example

Example.bam
; No example implemented yet