January 1999
Beginner
373 pages
9h 43m
English
If you know a y coordinate in the listbox, you can determine the index of the nearest listbox item to it by using the nearest method:
$index = $lb->nearest(y)
The nearest method returns a number that corresponds to the index of the closest visible listbox item.