Appends an item to the end of a list box or combo box.
Takes gizmo (Int) and text (String).
Returns item index.
BGI GUI
Parameters & Returns
Parameters
gizmoInt
textString
Returns
Int
Quick Summary
Appends an item to the end of a list box or combo box.
Takes gizmo (Int) and text (String).
Returns item index.
Technical Exegesis...
Appends an item to the end of a list box or combo box control. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, sends LB_ADDSTRING with text, returns item index. For GIZMO_COMBOBOX, sends CB_ADDSTRING with text, returns item index. Returns -1 if gizmo not found or unsupported gizmo type.
This function adds an item to the end of the list or combo box. Returns the 0-based index of the newly added item (can be used for subsequent operations). Works with both GIZMO_LISTBOX and GIZMO_COMBOBOX types.
Appends an item to the end of a list box or combo box control. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, sends LB_ADDSTRING with text, returns item index. For GIZMO_COMBOBOX, sends CB_ADDSTRING with text, returns item index. Returns -1 if gizmo not found or unsupported gizmo type.
This function adds an item to the end of the list or combo box. Returns the 0-based index of the newly added item (can be used for subsequent operations). Works with both GIZMO_LISTBOX and GIZMO_COMBOBOX types. For sorted list boxes (LBS_SORT style), item may not appear at end - index indicates actual insertion position. Use for populating lists, adding options, or building menus. Most common method for adding items.