search for: red_pen

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

Did you mean: rec_open
2007 Apr 29
0
[990] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxCursor.rbw: Use paint block instead of ClientDC; load icon file safely
...</span><span class="cx"> </span><span class="cx"> def on_draw_dot(evt) </span><span class="cx"> # Draw a dot so the user can see where the hotspot is </span><del>- dc = Wx::ClientDC.new(@win) - dc.set_pen(Wx::RED_PEN) - dc.set_brush(Wx::RED_BRUSH) - pos = evt.get_position - dc.draw_circle(pos.x, pos.y, 4) </del><ins>+ @win.paint do | dc | + dc.set_pen(Wx::RED_PEN) + dc.set_brush(Wx::RED_BRUSH) + pos = evt.get_position + dc.draw_circle(pos.x, pos.y, 4) + end </in...
2006 Oct 17
0
[680] trunk/wxruby2/samples/printing/printing.rb: Cleaned up to use the Ruby naming convention, added #! line, now uses Wx default ID''s in standard menu items.
...ogical = (logUnitsFactor*leftMargin) - topMarginLogical = (logUnitsFactor*topMargin) - bottomMarginLogical = (logUnitsFactor*(pageHeightMM - bottomMargin)) - rightMarginLogical = (logUnitsFactor*(pageWidthMM - rightMargin)) - </del><span class="cx"> dc.set_pen(Wx::RED_PEN) </span><del>- dc.draw_line( leftMarginLogical.to_i, topMarginLogical.to_i, - rightMarginLogical.to_i, topMarginLogical.to_i) - dc.draw_line( leftMarginLogical.to_i, bottomMarginLogical.to_i, - rightMarginLogical.to_i, bottomMarginLogical.to_i) </del><ins&g...