Displaying 2 results from an estimated 2 matches for "set_renderer".
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...# values rather than strings. Here we set grid column 6
- # to hold floating point values displayed with width
- # of 2 and precision of 2. The column is highlighted in light grey
- cell_attr = Wx::GridCellAttr.new
- cell_attr.set_background_colour( Wx::LIGHT_GREY )
- cell_attr.set_renderer( Wx::GridCellFloatRenderer.new(2, 2) )
-
- @grid.set_col_attr(5, cell_attr)
- @grid.set_cell_value(0, 5, "3.1415")
- @grid.set_cell_value(0, 6,
- "The whole column to the left uses float format")
-
- # Custom Editors Can be used
- edit...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...# values rather than strings. Here we set grid column 6
+ # to hold floating point values displayed with width
+ # of 2 and precision of 2. The column is highlighted in light grey
+ cell_attr = Wx::GridCellAttr.new
+ cell_attr.set_background_colour( Wx::LIGHT_GREY )
+ cell_attr.set_renderer( Wx::GridCellFloatRenderer.new(2, 2) )
+
+ @grid.set_col_attr(5, cell_attr)
+ @grid.set_cell_value(0, 5, "3.1415")
+ @grid.set_cell_value(0, 6,
+ "The whole column to the left uses float format")
+
+ # Custom Editors Can be used
+ edit...