bgiSetTabText

Sets the display text for a specific tab by index. Takes tabControl (Int), index (Int), and text (String). Returns 1 if TabCtrl_SetItem succeeds, 0 if it fails or tab control not found.

BGI GUI

Parameters & Returns

Parameters

tabControl Int
index Int
text String

Returns

Int

Quick Summary

Sets the display text for a specific tab by index. Takes tabControl (Int), index (Int), and text (String). Returns 1 if TabCtrl_SetItem succeeds, 0 if it fails or tab control not found.

Technical Exegesis...

Sets the display text for a specific tab in a tab control. Searches gizmoMap for the tabControl ID. Creates TCITEM structure with TCIF_TEXT mask and pszText pointing to text parameter. Calls TabCtrl_SetItem with index and structure. Returns 1 if TabCtrl_SetItem succeeds, 0 if it fails or tab control not found.

This function changes the text displayed in a tab header. index is 0-based position (0 = first tab, 1 = second tab, etc.).

Example

Example.bam
; No example implemented yet