Displaying 3 results from an estimated 3 matches for "get_page_size_pixels".
2007 May 22
0
[1030] trunk/wxruby2/samples/printing/printing.rb: Fix so will print again.
...><span class="cx"> # Now we have to check in case our real page size is reduced
</span><span class="cx"> # (e.g. because we''re drawing to a print preview memory DC)
</span><span class="cx"> page_width, page_height = get_page_size_pixels
</span><del>- w, h = dc.get_size
</del><ins>+ size = dc.get_size
+ w = size.get_width
+ h = size.get_height
</ins><span class="cx">
</span><span class="cx"> # If printer pageWidth == current DC width, then this...
2007 Mar 06
0
[876] trunk/wxruby2/samples/printing/printing.rb: Fix a crasher if scale = 0; fix variable rename
...><span class="cx"> # Now we have to check in case our real page size is reduced
</span><span class="cx"> # (e.g. because we''re drawing to a print preview memory DC)
</span><span class="cx"> page_width, page_height = get_page_size_pixels
</span><span class="cx"> w, h = dc.get_size
</span><span class="cx">
</span><del>-
</del><span class="cx"> # If printer pageWidth == current DC width, then this doesn''t
</span><span class=&q...
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.
...;cx">
</span><span class="cx"> # Now we have to check in case our real page size is reduced
</span><span class="cx"> # (e.g. because we''re drawing to a print preview memory DC)
</span><del>- pageWidth, pageHeight = get_page_size_pixels
</del><ins>+ page_width, page_height = get_page_size_pixels
</ins><span class="cx"> w, h = dc.get_size
</span><span class="cx">
</span><span class="cx">
</span><span class="cx"> # If...