Displaying 2 results from an estimated 2 matches for "margin_y".
2007 May 22
0
[1030] trunk/wxruby2/samples/printing/printing.rb: Fix so will print again.
...UTC (rev 1029)
+++ trunk/wxruby2/samples/printing/printing.rb        2007-05-22 17:17:39 UTC (rev 1030)
</span><span class="lines">@@ -262,7 +262,9 @@
</span><span class="cx"> max_y += (2*margin_y)
</span><span class="cx">
</span><span class="cx"> # Get the size of the DC in pixels
</span><del>- w, h = dc.get_size
</del><ins>+ size = dc.get_size
+ w = size.get_width
+ h = size.get_height
</ins><span...
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.
...ins>+ max_x = 200
+ max_y = 200
</ins><span class="cx">
</span><span class="cx"> # Let''s have at least 50 device units margin
</span><del>- marginX = 50
- marginY = 50
</del><ins>+ margin_x = 50
+ margin_y = 50
</ins><span class="cx">
</span><span class="cx"> # Add the margin to the graphic size
</span><del>- maxX += (2*marginX)
- maxY += (2*marginY)
</del><ins>+ max_x += (2*margin_x)
+ max_y += (2*margin_y)
</ins...