bgiGetGizmoItemsAmount

Gets the total number of items in a list box or combo box. Takes gizmo (Int). Returns count or -1 if LB_ERR.

BGI GUI

Parameters & Returns

Parameters

gizmo Int

Returns

Int

Quick Summary

Gets the total number of items in a list box or combo box. Takes gizmo (Int). Returns count or -1 if LB_ERR.

Technical Exegesis...

Gets the total number of items in a list box or combo box control. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, sends LB_GETCOUNT message, returns count or -1 if LB_ERR. For GIZMO_COMBOBOX, sends CB_GETCOUNT message, returns count or -1 if LB_ERR (note: uses LB_ERR constant for CB check). Returns -1 if gizmo not found or unsupported gizmo type.

This function returns how many items exist in the list or combo box. Works with both GIZMO_LISTBOX and GIZMO_COMBOBOX types.

Example

Example.bam
; No example implemented yet