Link Search Menu Expand Document

ListItem.Touch Property


An event that occurs when an item in the list box is selected. It occurs regardless of the operation from the screen or the operation from the script.

Occurs when the SelectionMode property of the ListBox class changes from OFF to ON if it is $ STD.

If the SelectionMode property of the ListBox class is $ MULTI, it will occur for both OFF to ON and ON to OFF changes.

Note
In the handler of the event that occurred in the ListItem class, do not use the Value property of the parent object ListBox class to refer to the selected item number. (The selected item number may not be reflected.)

For the selected item number, refer to the Index property (subscript of the array) of the From property (ListItem object) of the Event object passed as an argument of the event handler. For the selected state of the item, refer to the Selected property from the From property.