Displaying 5 results from an estimated 5 matches for "set_cell_editor".
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...quot;)
- @grid.set_cell_value(0, 6,
- "The whole column to the left uses float format")
-
- # Custom Editors Can be used
- editor = Wx::GridCellNumberEditor.new(5, 20)
- @grid.set_cell_value(3, 1, ''Number editor below'')
- @grid.set_cell_editor(4, 1, editor)
-
- editor = Wx::GridCellFloatEditor.new(4, 2)
- @grid.set_cell_value(3, 2, ''Float editor below'')
- @grid.set_cell_editor(4, 2, editor)
-
- editor = Wx::GridCellChoiceEditor.new([''foo'', ''bar'', ''baz''])...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...quot;)
+ @grid.set_cell_value(0, 6,
+ "The whole column to the left uses float format")
+
+ # Custom Editors Can be used
+ editor = Wx::GridCellNumberEditor.new(5, 20)
+ @grid.set_cell_value(3, 1, ''Number editor below'')
+ @grid.set_cell_editor(4, 1, editor)
+
+ editor = Wx::GridCellFloatEditor.new(4, 2)
+ @grid.set_cell_value(3, 2, ''Float editor below'')
+ @grid.set_cell_editor(4, 2, editor)
+
+ editor = Wx::GridCellChoiceEditor.new([''foo'', ''bar'', ''baz''])...
2007 Jun 01
0
[1044] trunk/wxruby2: Special memory management for Wx::Grid
...f).call(row, col, rendr)
+ @__renderers[ [row, col] ] = rendr
+ end
+
+ wx_set_default_renderer = self.instance_method(:set_default_renderer)
+ define_method(:set_default_renderer) do | rendr |
+ wx_set_default_renderer.bind(self).call(rendr)
+ @__renderers[ nil ] = rendr
+ end
+
+ wx_set_cell_editor = self.instance_method(:set_cell_editor)
+ define_method(:set_cell_editor) do | row, col, editr |
+ wx_set_cell_editor.bind(self).call(row, col, editr)
+ @__editors[ [row, col] ] = editr
+ end
+
+ wx_set_default_editor = self.instance_method(:set_default_editor)
+ define_method(:set_defau...
2007 Feb 12
0
[861] trunk/wxruby2/doc/textile/grid.txtl: Added missing methods listing section
..._col":#Grid_selectcol
+* "Grid#selection_to_device_rect":#Grid_selectiontodevicerect
+* "Grid#select_row":#Grid_selectrow
+* "Grid#set_cell_alignment":#Grid_setcellalignment
+* "Grid#set_cell_background_colour":#Grid_setcellbackgroundcolour
+* "Grid#set_cell_editor":#Grid_setcelleditor
+* "Grid#set_cell_font":#Grid_setcellfont
+* "Grid#set_cell_renderer":#Grid_setcellrenderer
+* "Grid#set_cell_text_colour":#Grid_setcelltextcolour
+* "Grid#set_cell_value":#Grid_setcellvalue
+* "Grid#set_col_attr":#Grid_set...
2007 Jul 23
11
Memory problem with GridCell*Editor
Alex,
I was getting the following crashes when editing cells in a grid:
./init.rb:1072:in `main_loop'': undefined method `begin_edit'' for
"_p_wxEvent":String (NoMethodError)
from ./init.rb:1072
but only after the first App GC mark phase.
So I changed all the GridCell*Editor.i files from GC_MANAGE to
GC_MANAGE_AS_EVENT. Which stopped the crashing. My question