method scrollToRow

void scrollToRow(int32 rowIndex);

Argumente

Zurückgegebener Wert

This method sets the scroll position for this box so that it is at the location of the row specified by the caller. This will make the requested row visible within the box's viewable content area. If the rowIndex specified is greater than the number of available rows, then the rowIndex is assumed to be the upper limit of the row index range.
function SelRow(row)
{
    var lb = scene.getBoxById("myList");
    if (lb)
    {
        lb.cursorIndex = row;
        lb.scrollToRow(row);
    }
}