Displaying 3 results from an estimated 3 matches for "draw_page_one".
2011 May 08
2
Device context (get_dc) Question from printing.rb in wxRuby samples
...c also works
#-- looks like just get_dc is ok, why and
when
#-- the variable dc is probably a class
or module but
#-- where do I find its definition?
if dc
if page == 1
draw_page_one(dc) ##-- dc = device context passed in
elsif (page == 2)
draw_page_two(dc) ##-- dc = device context passed in
end
dc.set_device_origin(0, 0)
dc.set_user_scale(1.0, 1.0)
buf = "PAGE #{page}"
dc.draw_text(buf, 10, 10)...
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.
...l><ins>+ min_page = 1
+ max_page = 2
+ sel_page_from = 1
+ sel_page_to = 2
+ [min_page,max_page,sel_page_from,sel_page_to]
</ins><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> def draw_page_one(dc)
</span><span class="lines">@@ -249,39 +248,39 @@
</span><span class="cx">
</span><span class="cx"> # We know the graphic is 200x200. If we didn''t know this,
</span><span class="cx"> # we...
2007 May 21
13
First drop of new memory management
Hi
Just a quick update on memory leaks etc. I''ve just dropped a bunch of
patches with a new approach to linking ruby''s GC to Wx''s memory
handling. Still some work to do - eg bigdemo.rb falls over quite quickly
- but working well for me on other samples.
Briefly, it disposes of fixdeleting. For almost all objects that aren''t
Windows, they should now be