bgiAppendGizmoItem

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

gizmo Int
text String

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.

Example

Example.bam
; No example implemented yet