Displaying 4 results from an estimated 4 matches for "do_drawing".
2007 Apr 28
0
[978] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Fix crazy crashers on MSW; fix scrolling/drawing position; safe path to bitmap
...lass="cx"> def on_paint(event)
</span><del>- dc = Wx::PaintDC.new(self)
- prepare_dc(dc)
- # since we''re not buffering in this case, we have to
- # paint the whole window, potentially very time consuming.
- do_drawing(dc)
</del><ins>+ paint { | dc | do_drawing(dc) }
</ins><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> def do_drawing(dc, printing=false)
</span><del>- dc.set_p...
2007 Apr 28
0
[976] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Remove deprecated begin_drawing and end_drawing calls
...p    2007-04-28 23:12:55 UTC (rev 976)
</span><span class="lines">@@ -47,7 +47,6 @@
</span><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> def do_drawing(dc, printing=false)
</span><del>- dc.begin_drawing()
</del><span class="cx"> dc.set_pen(Wx::Pen.new("RED", 1, Wx::SOLID)) # Pen constructor requires (color, width, style)
</span><span class="cx"> dc.draw_rectan...
2007 Apr 29
0
[993] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Use ClientDC via Window#paint object
...ousewheel {|event| on_wheel(event)}
</span><span class="cx"> end
</span><span class="cx">
</span><del>- def on_paint(event)
</del><ins>+ def on_paint
</ins><span class="cx"> paint { | dc | do_drawing(dc) }
</span><span class="cx"> end
</span><span class="cx">
</span><span class="lines">@@ -156,20 +156,23 @@
</span><span class="cx">
</span><span class="cx"> def on_left_...
2006 Aug 10
3
update on samples
Hi all
Have been taking a look at the samples to see what''s broken. Not looking
TOO bad overall, but a few problems we should try and tackle before alpha:
Firstly, I have a few commits (minimal, dialogs, unicode) - anyone else
been working on these or can I go ahead?
One general issue is that many of the samples rely on being run from
their own directory, but don''t enforce