bgiGetSelectedGizmoItem

Gets the index of the currently selected item in a list box or combo box. Takes gizmo (Int). Returns index or -1 if LB_ERR (no selection).

BGI GUI

Parameters & Returns

Parameters

gizmo Int

Returns

Int

Quick Summary

Gets the index of the currently selected item in a list box or combo box. Takes gizmo (Int). Returns index or -1 if LB_ERR (no selection).

Technical Exegesis...

Gets the 0-based index of the currently selected item in a list box or combo box. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, sends LB_GETCURSEL message, returns index or -1 if LB_ERR (no selection). For GIZMO_COMBOBOX, sends CB_GETCURSEL message, returns index or -1 if CB_ERR (no selection). Returns -1 if gizmo not found or unsupported gizmo type.

This function returns which item is currently selected. Returns 0-based index (0 = first item, 1 = second item, etc.).

Example

Example.bam
; No example implemented yet