search for: right_margin_logical

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

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.
...;<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>- leftMarginLogical = (logUnitsFactor*leftMargin) - topMarginLogical = (logUnitsFactor*topMargin) - bottomMarginLogical = (logUnitsFactor*(pageHeightMM - bottomMa...
2007 Mar 06
0
[876] trunk/wxruby2/samples/printing/printing.rb: Fix a crasher if scale = 0; fix variable rename
...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).to_i ) </del><ins>+ dc.draw_line( left_margin_logical, (top_margin_logical + y_extent).to_i, + right_margin_logical, (top_margin_logical + y_extent).to_i ) </ins><span class="cx"> </span><span class="...