search for: set_column

Displaying 4 results from an estimated 4 matches for "set_column".

Did you mean: get_column
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...
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 #...
2008 Feb 10
4
method from string?
I am sure this is doable but I can''t find a specific example and my brain is frazzled. Basically, I am doing a whole load of in-place editing and need methods to support the updates. Here is what I am doing now: def set_blog_website faq = Faq.find(params[:id]) faq.blog_website = params[:value] faq.save! @faq = faq do_ret end Surely there is a generic way I can
2006 Nov 21
0
[745] trunk/wxruby2/doc/textile/choice.txtl: Correct ruby method signature for constructor, bit more explanatory text
...t;span class="cx"> function. </span><span class="cx"> </span><del>-2.6.2 (before this version -"get_selection":#Choice_getselection itself behaved like -this). - - </del><span class="cx"> h3(#Choice_setcolumns). Choice#set_columns </span><span class="cx"> </span><span class="cx"> *set_columns*(%(arg-type)Integer% n = 1) </span></span></pre> </div> </div> </body> </html>