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
gizmoInt
indexInt
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.).
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.). Text limited to 256 bytes. Works with both GIZMO_LISTBOX and GIZMO_COMBOBOX types. GetListBoxItemText and GetComboItemText are helper functions wrapping LB_GETTEXT/CB_GETLBTEXT. Uses local TCHAR buffer - result may be temporary, copy if needed. Returns empty string for invalid indices. Use for reading item values, searching lists, or displaying selected item text.