Class: Wx::ControlWithItems

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/wx/classes/controlwithitems.rb

Overview

Superclass of a variety of controls that display lists of items (eg Choice, ListBox, CheckListBox)

Instance Method Summary collapse

Instance Method Details

#eachObject

Passes each valid item index into the passed block



7
8
9
# File 'lib/wx/classes/controlwithitems.rb', line 7

def each
  0.upto(get_count - 1) { | i | yield i }
end