Displaying 3 results from an estimated 3 matches for "cell_attr".
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
....set_cell_background_colour(1, 1, Wx::RED)
-
- # We can specify the some cells will store numeric
- # 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,
- &qu...
2006 Jul 20
0
RJS and calendar_helper troubles .... tab characters covering web page
...=> 2006, :month => 5
shared/_calendar.rhtml partial
<hr>
<%=
calendar({:year => 2006, :month => 11, :table_class =>
"my_calendar_helper"}) do |d|
cell_text = "#{d.mday}<br />"
cell_attrs = {:class => ''my_day''}
@events.each do |e|
if e.tour_start_date == d
cell_text << e.label << "<br />"
cell_attrs[:class] = ''specialDay''...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
....set_cell_background_colour(1, 1, Wx::RED)
+
+ # We can specify the some cells will store numeric
+ # 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,
+ &qu...