Class: Wx::ListCtrl

Inherits:
Object
  • Object
show all
Includes:
WxSugar::EnumerableControl
Defined in:
lib/wx_sugar/wx_classes/listctrl.rb

Instance Method Summary collapse

Methods included from WxSugar::EnumerableControl

#delete_if, #each, included, #index

Instance Method Details

#<<(str) ⇒ Object

Appends



13
14
15
# File 'lib/wx_sugar/wx_classes/listctrl.rb', line 13

def <<(str)
  insert_item(get_item_count, str)
end

#find_string(str, case_sensitive = false) ⇒ Object

Emulate the ControlWithItems find_string method. Like the cognate method, it returns -1 if the string was not found.



19
20
21
22
23
24
25
# File 'lib/wx_sugar/wx_classes/listctrl.rb', line 19

def find_string(str, case_sensitive = false)
  if case_sensitive
    find_string_sensitively(str)
  else
    find_item(-1, str)
  end
end