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
tabControlInt
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.
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. Use for determining active page, showing/hiding page-specific controls, or handling tab-specific logic in BGI_EVENT_COMMAND_UPDATE events. Selection changes when user clicks different tabs.