This property sets and gets the index of the row that is selected and has the
cursor focus. This can be read to get this index or set to move the current index to
a different row. Setting this will clear the existing selection if present.
var selBox = scene.getBoxById("myListBox");
if (selBox)
{
var index = selBox.firstVisibleRowIndex;
if (index != -1)
{
// set cursor index to the first visible item
selBox.cursorIndex = index;
}
}