bgiGetGizmoItemString

Gets the text of a specific item in a list box or combo box. Takes gizmo (Int) and index (Int). Returns buffer contents on success, empty string if gizmo not found or unsupported gizmo type.

BGI GUI

Parameters & Returns

Parameters

gizmo Int
index Int

Returns

String

Quick Summary

Gets the text of a specific item in a list box or combo box. Takes gizmo (Int) and index (Int). Returns buffer contents on success, empty string if gizmo not found or unsupported gizmo type.

Technical Exegesis...

Gets the text of a specific item in a list box or combo box by index. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, creates 256 TCHAR buffer, calls GetListBoxItemText helper function with index and buffer. For GIZMO_COMBOBOX, creates 256 TCHAR buffer, calls GetComboItemText helper function with index and buffer. Returns buffer contents on success, empty string if gizmo not found or unsupported gizmo type.

This function retrieves item text by 0-based index (0 = first item, 1 = second item, etc.).

Example

Example.bam
; No example implemented yet