search for: height_char

Displaying 2 results from an estimated 2 matches for "height_char".

2007 Apr 30
0
[999] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Use paint() instead of ClientDC.new() in caret sample
...class="lines">@@ -107,16 +107,17 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def create_caret </span><del>- dc = ClientDC.new(self) - dc.set_font(@font) - @height_char = dc.get_char_height - @width_char = dc.get_char_width </del><ins>+ paint do | dc | + dc.set_font(@font) + @height_char = dc.get_char_height + @width_char = dc.get_char_width </ins><span class="cx"> </span><del>- caret = Caret.n...
2007 Apr 29
0
[981] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Don''t call PaintDC.new; just refresh() instead of duplicating paint code
...t;<ins>+ paint do | dc | + dc.clear + dc.set_font(@font) </ins><span class="cx"> </span><del>- dc.set_font(@font) - - for y in 0 ... @y_chars - line = @text[@x_chars * y,@x_chars] - dc.draw_text( line, @x_margin, @y_margin + y * @height_char ) </del><ins>+ for y in 0 ... @y_chars + line = @text[@x_chars * y,@x_chars] + dc.draw_text( line, @x_margin, @y_margin + y * @height_char ) + end </ins><span class="cx"> end </span><span class="cx"> </span>&...