Method: AutoItX3::ListBox#add_item

Defined in:
lib/AutoItX3/control.rb

#add_item(string) ⇒ Object

call-seq:

AutoItX3::ListBox#add( item ) ==> item
AutoItX3::ListBox#<< item ==> self

Adds an entry to an existing combo or list box. If you use the << form, you can do a chain call like:

ctrl << "a" << "b" << "c"


216
217
218
219
# File 'lib/AutoItX3/control.rb', line 216

def add_item(string)
  send_command_to_control("AddString", string)
  string
end