[wxruby-users] ListCtrl LC_REPORT undefined method
Richard White
lists at ruby-forum.com
Thu Jul 10 04:35:18 EDT 2008
Hi
Inserting an item with several columns into a ListCtrl:
def add_items(items)
i = 0
items.each do |data|
self.insert_item(i, data[0])
self.set_item(i,1,data[1])
self.set_item(i,2,data[2])
i += 1
end
end
end
works fine but I am unable to set the background colour of the item:
self.set_item_background_colour(i,RED)
gives: undefined method: set_item_background_colour
Version is 1.9.4-i386-mswin32
Ideas?
Refreshing that the Scottish heritage of wxWidgets influences spelling:
I am so used to color as opposed to colour.
--
Posted via http://www.ruby-forum.com/.
More information about the wxruby-users
mailing list