Returns index of currently selected item.
Use this function to obtain zero based index of currently selected item.