SelectIndex Method (SparkButtonBar)

Class

SparkButtonBar class

Action

Dispatched when the user clicks on an item in the list or navigates to the item using a keyboard.

Syntax

buttonBar.SelectIndex(itemIndex, [triggerEvent, keyModifier])
Variable Description
itemIndex The index of the item which was selected. INTEGER.
triggerEvent Optional.Whether the event was triggered by mouse or keyboard. FLEXTRIGGEREVENT.
keyModifier Optional.A constant that indicates which key or key combination, if any, was pressed while this operation took place. One of: flexAlt, flexControl, flexControlAlt, flexControlShift, flexControlShiftAlt, flexShift, or flexShiftAlt. For example, if the Shift and Alt keys were pressed, then the value would be flexShiftAlt. MODIFIERKEYSTATE.