Home List boxes LIST BOX - GET FIRST VISIBLE ITEM, SLIDER A (AES 174, 4) LIST BOX - GET ITEMS (AES 174, 6)

2.4.11 LIST BOX - GET INDEX of SELECTED ITEM (AES 174, 5)

Establish the index of the first selected item. If no item in the list is selected then -1 will be returned.

Declaration:
WORD lbox_get_slct_idx( LIST_BOX *box );

Call:
index = lbox_get_slct_idx( box );

Variable         Argument            Meaning
Inputs:

contrl[0]        174                 lbox_get
contrl[1]        1                   Entries in intin
contrl[3]        1                   Entries in addrin

intin[0]         5                   lbox_get_slct_idx

addrin[0]        box                 Pointer to the list box structure

Outputs:

contrl[2]        1                   Entries in intout
contrl[4]        0                   Entries in addrout

intout[0]        index               Index of the selected item


Home List boxes LIST BOX - GET FIRST VISIBLE ITEM, SLIDER A (AES 174, 4) LIST BOX - GET ITEMS (AES 174, 6)