Displaying 1 result from an estimated 1 matches for "fill_list".
Did you mean:
file_list
2009 Oct 24
6
Working with ListCtrl and ListItem
...#39;m trying to get my ListCtrl to work. Currently I''ve managed to fill
my ListCtrl with items, but I think it''s not the most beautiful way:
class MyList < Wx::ListCtrl
def initialize(parent, *args)
super(parent, :style => Wx::LC_REPORT|LC_HRULES )
create_layout
fill_list
end
def create_layout
self.insert_column(0, "Name")
self.insert_column(1, "Code")
self.insert_column(2, "Desc")
self.set_column_width(0,80)
self.set_column_width(1,100)
self.set_column_width(2,150)
end
def fill_list
i=0
DataObject....