search for: light_grey

Displaying 9 results from an estimated 9 matches for "light_grey".

2007 Jan 14
0
[849] trunk/wxruby2/lib/wx/classes/colour.rb: Stock colours weren''t initializing correctly
...#39;) - - Wx::RED = new(''Red'') - Wx::GREEN = new(''Green'') - Wx::BLUE = new(''Blue'') - - Wx::YELLOW = new(''Yellow'') - Wx::CYAN = new(''Cyan'') - Wx::MAGENTA = new(''Magenta'') - - Wx::LIGHT_GREY = new(''Light Grey'') - </del><span class="cx"> # Redefine the initialize method so it raises an exception if an </span><span class="cx"> # invalid colour value is given. This might be an unknown colour </span><span class=&quo...
2006 Oct 17
0
[681] trunk/wxruby2/samples/treectrl/treectrl.rb: wxMAC does not like menu id''s of 0 so I fixed that also made set_item_text_colour
...n class="cx"> id,cookie = get_next_child(root_id,cookie) </span><span class="cx"> id,cookie = get_next_child(root_id,cookie) </span><del>- set_item_text_colour(id, Wx::RED) - # Not supported on OS X - set_item_background_colour(id, Wx::LIGHT_GREY) </del><ins>+ if Wx::PLATFORM == "WXMSW" + set_item_text_colour(id, Wx::RED) + set_item_background_colour(id, Wx::LIGHT_GREY) + end </ins><span class="cx"> end </span><span class="cx"> </span><span c...
2007 Feb 12
0
[864] trunk/wxruby2/samples/calendar/calendar.rb: Fix a couple of errors, add a note on CalendarDateAttr
...;<span class="cx"> attr_red_circle = CalendarDateAttr.new(CAL_BORDER_ROUND, RED) </span><span class="cx"> attr_green_square = CalendarDateAttr.new(CAL_BORDER_SQUARE, GREEN) </span><del>-# attr_header_like = CalendarDateAttr.new(BLUE, LIGHT_GREY) </del><ins>+ # This wraps correctly, but causes problems because the colour is freed + # when the attribute is reset. + # + # attr_header_like = CalendarDateAttr.new(BLUE, LIGHT_GREY) </ins><span class="cx"> </span><span class="c...
2006 Dec 29
0
[808] trunk/wxruby2: Make Wx::Colour#== work correctly as documented, tidy docs for that class
...l>-Objects: </del><ins>+These predefined colours are defined as constants in wxRuby. </ins><span class="cx"> </span><del>-*NullColour* </del><ins>+ Wx::NULL_COLOUR + Wx::BLACK + Wx::WHITE + Wx::RED + Wx::BLUE + Wx::GREEN + Wx::CYAN + Wx::LIGHT_GREY </ins><span class="cx"> </span><del>-Pointers: - -*BLACK - -WHITE\\ -RED\\ -BLUE\\ -GREEN\\ -CYAN\\ -LIGHT_GREY* - </del><span class="cx"> h2. See also </span><span class="cx"> </span><span class="cx"...
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...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, - "The whole column to the left uses float format") - - # Custom...
2007 Jan 08
0
[843] trunk/wxruby2: Moved stock colours so they are available from library load time
...#39;) + + Wx::RED = new(''Red'') + Wx::GREEN = new(''Green'') + Wx::BLUE = new(''Blue'') + + Wx::YELLOW = new(''Yellow'') + Wx::CYAN = new(''Cyan'') + Wx::MAGENTA = new(''Magenta'') + + Wx::LIGHT_GREY = new(''Light Grey'') + </ins><span class="cx"> # Redefine the initialize method so it raises an exception if an </span><span class="cx"> # invalid colour value is given. This might be an unknown colour </span><span class=&quo...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...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, + "The whole column to the left uses float format") + + # Custom...
2007 Mar 21
0
[904] branches/wxruby2/wxwidgets_282: Changes in Wx::Colour API 2.6 -> 2.8
...aise ArgumentError, "Invalid colour values #{args.inspect}" </span><span class="cx"> end </span><span class="cx"> end </span><span class="lines">@@ -31,16 +31,17 @@ </span><span class="cx"> Wx::LIGHT_GREY = new(192, 192, 192) </span><span class="cx"> </span><span class="cx"> # Colours are equal to one another if they have the same red, green </span><del>- # and blue intensity. </del><ins>+ # and blue intensity, and the same alp...
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...ot;> list.insert_item(0, ''line0:column0'') </span><span class="lines">@@ -32,12 +32,10 @@ </span><span class="cx"> item.set_font(Wx::ITALIC_FONT) </span><span class="cx"> item.set_background_colour(Wx::LIGHT_GREY) </span><span class="cx"> list.set_item( item ) </span><del>- </del><ins>+ </ins><span class="cx"> # test of get_item method </span><span class="cx"> 0.upto(2) do |i| </span><del>-...