JavaScript EditorFree JavaScript Editor     Perl Manuals 

Main Page

7.16. Finding an Index by y Coordinate

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.

JavaScript EditorJavaScript Formatter     Perl Manuals