bgiRemoveGizmoItem

Removes an item from a list box or combo box by its index. Takes gizmo (Int) and index (Int). Returns 1 or 0 if LB_ERR.

BGI GUI

Parameters & Returns

Parameters

gizmo Int
index Int

Returns

Int

Quick Summary

Removes an item from a list box or combo box by its index. Takes gizmo (Int) and index (Int). Returns 1 or 0 if LB_ERR.

Technical Exegesis...

Removes an item from a list box or combo box by its 0-based index. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, sends LB_DELETESTRING with index, returns 1 or 0 if LB_ERR. For GIZMO_COMBOBOX, sends CB_DELETESTRING with index, returns 1 or 0 if LB_ERR (note: uses LB_ERR constant for CB check). Returns 0 if gizmo not found or unsupported gizmo type.

This function deletes a single item from the list or combo box. index is 0-based position (0 = first item, 1 = second item, etc.).

Example

Example.bam
; No example implemented yet