Method: Wx::ListCtrl#get_selections
- Defined in:
- lib/wx/classes/listctrl.rb
#get_selections ⇒ Object
Returns an Array containing the indexes of the currently selected items
12 13 14 15 16 17 18 19 20 |
# File 'lib/wx/classes/listctrl.rb', line 12 def get_selections selections = [] item = get_next_item(-1, Wx::LIST_NEXT_ALL, Wx::LIST_STATE_SELECTED) while item >= 0 selections << item item = get_next_item(item, Wx::LIST_NEXT_ALL, Wx::LIST_STATE_SELECTED) end selections end |