bgiGetSelectedTab

Gets the index of the currently selected tab. Takes tabControl (Int). Returns selected tab index on success, -1 if no selection or tab control not found.

BGI GUI

Parameters & Returns

Parameters

tabControl Int

Returns

Int

Quick Summary

Gets the index of the currently selected tab. Takes tabControl (Int). Returns selected tab index on success, -1 if no selection or tab control not found.

Technical Exegesis...

Gets the 0-based index of the currently selected tab in a tab control. Searches gizmoMap for the tabControl ID. Calls TabCtrl_GetCurSel to retrieve current selection index. Returns selected tab index on success, -1 if no selection or tab control not found.

This function returns which tab is currently active/visible. Returns 0-based index (0 = first tab, 1 = second tab, etc.). Returns -1 when no tab selected (empty tab control) or tab control not found.

Example

Example.bam
; No example implemented yet