search for: top_margin_log

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

2007 Mar 06
0
[876] trunk/wxruby2/samples/printing/printing.rb: Fix a crasher if scale = 0; fix variable rename
...e. But w might be the preview bitmap width, so scale down. </span><span class="cx"> overall_scale = scale * (w/page_width) </span><span class="lines">@@ -391,8 +390,8 @@ </span><span class="cx"> dc.draw_text(text, x_pos.to_i, top_margin_logical) </span><span class="cx"> </span><span class="cx"> dc.set_pen(Wx::BLACK_PEN) </span><del>- dc.draw_line( left_margin_logical, (top_margin_logical+y_extent).to_i, - right_margin_logical, (top_margin_logical+yExtent)...
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.
...argin = 20 </del><ins>+ page_width_mm, page_height_mm = get_page_size_mm </ins><span class="cx"> </span><del>- pageWidthMM, pageHeightMM = get_page_size_mm </del><ins>+ left_margin_logical = (log_units_factor*left_margin).to_i + top_margin_logical = (log_units_factor*top_margin).to_i + bottom_margin_logical = (log_units_factor*(page_height_mm - bottom_margin)).to_i + right_margin_logical = (log_units_factor*(page_width_mm - right_margin)).to_i </ins><span class="cx"> </span><del>- leftMarginLog...