Sets the text of an existing item in a list box or combo box.
Takes gizmo (Int), text (String), and index (Int).
Returns 1 if successful, 0 if failed.
BGI GUI
Parameters & Returns
Parameters
gizmoInt
textString
indexInt
Returns
Int
Quick Summary
Sets the text of an existing item in a list box or combo box.
Takes gizmo (Int), text (String), and index (Int).
Returns 1 if successful, 0 if failed.
Technical Exegesis...
Sets the text of an existing item in a list box or combo box. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, calls ChangeListBoxItem helper function with index and text, returns 1 if successful, 0 if failed. For GIZMO_COMBOBOX, calls ChangeComboBoxItem helper function with index and text, returns 1 if successful, 0 if failed. Returns 0 if gizmo not found or unsupported gizmo type.
This function updates the text of an existing item without changing its position.
Sets the text of an existing item in a list box or combo box. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, calls ChangeListBoxItem helper function with index and text, returns 1 if successful, 0 if failed. For GIZMO_COMBOBOX, calls ChangeComboBoxItem helper function with index and text, returns 1 if successful, 0 if failed. Returns 0 if gizmo not found or unsupported gizmo type.
This function updates the text of an existing item without changing its position. index is 0-based position (0 = first item, 1 = second item, etc.). Works with both GIZMO_LISTBOX and GIZMO_COMBOBOX types. ChangeListBoxItem and ChangeComboBoxItem are helper functions (likely delete + re-insert to maintain position). Use for updating item text dynamically, reflecting data changes, or correcting entries. Returns 0 for invalid indices.