search for: set_column_width

Displaying 2 results from an estimated 2 matches for "set_column_width".

2004 Apr 21
2
Resizing a ListCtrl
...ed a sample code below. Any help will be greatly appreciated, as I really like wxRuby :) I''ve also tried to copy from the example from listtest.rbw, but that also doesn''t seem to work. Another thing I''ve noticed - this seems to be ignored in the example below: @fileList.set_column_width(0, LIST_AUTOSIZE_USEHEADER) Cheers, Assaph p.s. I''m using ruby 1.8.1 (2003-12-25) [i386-mswin32] with the latest wxruby (0.3.0). This has also happened with wxRuby 0.2.0. # BEGIN CODE require ''wxruby'' include Wx class MainFrame < Frame def initialize ## {{{...
2009 Oct 24
6
Working with ListCtrl and ListItem
...; 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.find(:all).each do |data| self.insert_item(i, data.name) self.set_item(i,1,data.code) self.set_item(i,2,data.description) i = i + 1 end end I think it wo...