search for: insert_column

Displaying 7 results from an estimated 7 matches for "insert_column".

2006 Nov 29
0
[ wxruby-Bugs-6972 ] Wx::ListCtrl will crash if item added before insert_column called
...http://rubyforge.org/tracker/?func=detail&atid=218&aid=6972&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 2 Submitted By: Alex Fenton (brokentoy) Assigned to: Kevin Smith (qualitycode) Summary: Wx::ListCtrl will crash if item added before insert_column called Initial Comment: If Wx::ListCtrl has been created with Wx::LC_REPORT style (to show multiple columns and rows, with optional icon), it will SEGV if insert_item is called before insert_column is called. Doing this (inserting an item before inserting a column) in user code is of course incor...
2004 Apr 21
2
Resizing a ListCtrl
...end ## }}} def onClose ## {{{ destroy() end ## }}} def onSize(event=nil) frame_size = event.get_size x = frame_size.x - 10 y = frame_size.y - 10 @fileList.set_size_xy(x, y) event.skip() if event end def fillListCtrl #{{{ @fileList.clear_all @fileList.insert_column(0, "Col 1", LIST_FORMAT_LEFT) @fileList.insert_column(1, "col 2", LIST_FORMAT_LEFT) @fileList.insert_column(2, "col 3", LIST_FORMAT_LEFT, 1000) item = ListItem.new item.set_column(0) 20.times { |i| idx = @fileList.insert_item(item) @fil...
2009 Oct 24
6
Working with ListCtrl and ListItem
...rrently 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.find(:all).each do |data| self.insert_it...
2009 Sep 05
5
Filling Wx::ListCtrl with contents
Hi all, I''ve got a question concerning ListCtrl_virtual of wxRuby since I see no way filling the list with dynamic contents. I''m new to Ruby so I maybe have to apologise for my request. The problem is, that I have to define the on_get_item_text(item, col) function. There I would like to use the item and col variables to read data from a two-dimensional array. My very problem
2007 Jun 05
0
[1048] trunk/wxruby2/samples/bigdemo/wxListCtrl_virtual.rbw: Fix broken path to Bitmap file for item image
...uot;icons/wxwin16x16.xpm") + + @idx1 = @il.add(Wx::Bitmap.new(bmp_file)) </ins><span class="cx"> set_image_list(@il, Wx::IMAGE_LIST_SMALL) </span><span class="cx"> </span><span class="cx"> insert_column(0,"First") </span></span></pre> </div> </div> </body> </html>
2006 Nov 29
0
[763] trunk/wxruby2/doc/textile/listctrl.txtl: Warn about a potential mistake using the API that may cause a crash
...;span class="cx"> </span><span class="cx"> Insert an image/string item. </span><span class="cx"> </span><ins>+Note that if you are using a ListCtrl with the @Wx::LC_REPORT@ style, +you *must* create one or more columns using the insert_column method +before inserting items, or it will not work, and WxRuby may crash. + </ins><span class="cx"> h4. Parameters </span><span class="cx"> </span><span class="cx"> * _info_ ListItem object </span></span></pre> &l...
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
....new(self, ID, Wx::DEFAULT_POSITION,Wx::DEFAULT_SIZE,Wx::LC_REPORT) </del><ins>+ list = Wx::ListCtrl.new(self, -1, Wx::DEFAULT_POSITION, + Wx::DEFAULT_SIZE, + Wx::LC_REPORT) </ins><span class="cx"> list.insert_column(0,"column0",Wx::LIST_FORMAT_LEFT, -1) </span><span class="cx"> list.insert_column(1,"column1",Wx::LIST_FORMAT_LEFT, -1) </span><span class="cx"> list.insert_item(0, ''line0:column0'') </span><span class...