search for: lc_report

Displaying 11 results from an estimated 11 matches for "lc_report".

2008 Apr 28
1
LC_REPORT ListCtrl Confusion
Hi, I''m having some trouble allowing the user to edit a multi-column listctrl. I can do the first column fine, simply by calling ListCtrl::edit_label in the activate event, but it seems impossible to do this for the other columns for two reasons. 1, the activate event doesn''t allow you to get the column, and 2, edit_label onl;y works for the first column. Thanks, Lucas
2007 Aug 27
3
Problem with ListCtrl#get_item
Hello, I have a problem with getting items from ListCtrl. Although my ListCtrl is in LC_REPORT mode, it has columns set up, every cell is set with set_item and everything displays fine, this code: x = myList.get_item(row,col).get_text() always returns an empty string. For example: myList.set_item(0,0,"Hello") x = myList.get_item(0,0).get_text() now x equals "" ! I d...
2008 Oct 17
3
ListCtrl loading data
Hi all, I''m using a ListCtrl on LC_REPORT mode. using set_item(index, col, ''value'') the list does''t get populated. Is it a bug? which is the method to call? i''m using ruby 1.8.6 wxruby 1.9.8 mswin32 on winXP attached is an example. thank you. bio. _______________________________________________...
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
2004 Apr 21
2
Resizing a ListCtrl
...nce variables and super {{{ super(nil, -1, "test frame") #}}} # main layout {{{ @dlgSizer = BoxSizer.new(VERTICAL) centerSizer = BoxSizer.new(HORIZONTAL) # File List {{{ @fileList = ListCtrl.new(self, -1, DEFAULT_POSITION, Size.new(250, 200), LC_REPORT | LC_SINGLE_SEL) fillListCtrl() centerSizer.add(@fileList, 6, GROW|EXPAND) # }}} @dlgSizer.add(centerSizer, 1) @dlgSizer.set_size_hints(self) set_sizer(@dlgSizer) # end main layout }}} ## global events {{{ evt_close {onClose} evt_size() {|event| onSize(eve...
2009 Oct 24
6
Working with ListCtrl and ListItem
Hi List, I''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...
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...quot;:listctrl.html#ListCtrl_setitem for more -information. </del><ins>+Gets information, such as the text label, font and colour, about a +ListCtrl item at zero-based row number @row@. The @col@ parameter is +optional, and is only meaningful if the ListCtrl was created with the +style @LC_REPORT@. In that case the ListItem will contain information +such as the text content specific to that column in that row. </ins><span class="cx"> </span><del>-You must call _info.SetId()_ to the ID of item you''re interested in -before calling this method. </...
2006 Nov 29
0
[ wxruby-Bugs-6972 ] Wx::ListCtrl will crash if item added before insert_column called
...=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 incorrect, but WxRuby should signal this mistake more courteously than by crashing...
2007 Oct 17
1
what''s a ListCtrlCompare ?
Hello all, The doc for Wx::ListCtrl#sort_items says the method takes a ListCtrlCompare. I''ve searched high and low, and I can''t find any description of such an object. Is there sample code somewhere in which an LC_REPORT style ListCtrl offers sorting by column? That''s really all I''m trying to do, and if I could see it done I''m sure it would all make sense to me. Thanks much! Peralta
2006 Nov 29
0
[763] trunk/wxruby2/doc/textile/listctrl.txtl: Warn about a potential mistake using the API that may cause a crash
...an class="lines">@@ -625,6 +625,10 @@ </span><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"...
2008 Feb 17
15
A bug in wxRuby. Segmentation fault in random situations.
Hello, I wrote an application in wxRuby: ruby 1.8.6 wxruby 1.9.4 installed from gem windows xp sp2 After several minutes of running it crashes with the following error: "c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: [BUG] Segmentation fault ruby 1.8.6 (2007-03-13) [i386-mswin32] This application has requested the Runtime to terminate it in an unusual way. Please contact