Displaying 4 results from an estimated 4 matches for "show_color".
Did you mean:
shadow_color
2006 Sep 06
2
RJS Javascript oddity - trying to call Element.setStyle
...What I want to do is to change the background color of the div to red
when the button is clicked. My form code looks like this:
<%= form_remote_tag :url => {:action => ''color_show''} %>
color_show.rjs looks like this:
page << "Element.setStyle(''show_color'', {backgroundColor: ''blue''})"
When I click the button, the page elements go away and I just get this
screen of text:
try {
Element.setStyle(''show_color'', {backgroundColor: ''blue''})
} catch (e) { alert(''RJS error:\n\n'...
2006 Nov 13
0
[735] trunk/wxruby2: Got the ''get_item_sample'' sample working had to add some missing ListCtrl constants.
...0.upto(2) do |i|
</span><del>- item = list.get_item(i)
- print "ID:",item.get_id,"\n"
- print "column: ",item.get_column,"\n"
- print "text: ",item.get_text,"\n"
- print "text color:",show_color(item.get_text_colour),"\n"
- print "BG color: ",show_color(item.get_background_colour),"\n"
- print "font: ",show_font(item.get_font),"\n\n"
</del><ins>+ item = Wx::ListItem.new()
+ item.set_id(i)
+ if list...
2007 May 04
0
[1008] trunk/wxruby2/samples/controls/get_item_sample.rb: ok method name changed to is_ok
...p;nbsp    2007-05-04 23:38:03 UTC (rev 1008)
</span><span class="lines">@@ -58,7 +58,7 @@
</span><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> def show_color(color)
</span><del>- if color.ok
</del><ins>+ if color.is_ok
</ins><span class="cx"> return ''(%i, %i, %i)'' % [color.red, color.green, color.blue]
</span><span class="cx"> else
</span><span...
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...ot;> print "text: ",item.get_text,"\n"
</span><span class="lines">@@ -61,14 +58,15 @@
</span><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> def show_color(color)
</span><del>- red = color.red
- green = color.green
- blue = color.blue
- return "(#{red}, #{green}, #{blue})"
</del><ins>+ if color.ok
+ return ''(%i, %i, %i)'' % [color.red, color.green, color.blue]
+ else
+ retu...