search for: y_margin

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

Did you mean: p_margin
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
...clear </del><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"&...
2007 Apr 30
0
[999] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Use paint() instead of ClientDC.new() in caret sample
...Caret.new(self, Size.new(@width_char, @height_char)) - set_caret(caret) </del><ins>+ caret = Caret.new(self, Size.new(@width_char, @height_char)) + set_caret(caret) </ins><span class="cx"> </span><del>- caret.move(Point.new(@x_margin, @y_margin)) - caret.show </del><ins>+ caret.move(Point.new(@x_margin, @y_margin)) + caret.show + end </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def move_caret(x,y) </span&g...