ListBox.setSelectedFocus

Syntax

setSelectedFocus(value: Number, fireEvent: Boolean, oldIndex: Number);

Parameters

value. Element index.

fireEvent. Indicates whether the event of deselecting from the previous selected element is called. If the parameter has the "True" value, then the event will be called, otherwise it will not.

oldIndex. Index of previous selected element.

Description

The setSelectedFocus method sets the focus by element index.

Example

The example of property use is given in description of the ListBox.getScrollBox method.

See also:

ListBox