search for: y_extent

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

2007 Mar 06
0
[876] trunk/wxruby2/samples/printing/printing.rb: Fix a crasher if scale = 0; fix variable rename
...t;<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).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="c...
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.
...n class="cx"> </span><del>- xExtent, yExtent= dc.get_text_extent(text) - xPos = (((((pageWidthMM - leftMargin - rightMargin)/2.0)+leftMargin)*mmToLogical) - (xExtent/2.0)) - dc.draw_text(text, xPos.to_i, topMarginLogical.to_i) </del><ins>+ x_extent, y_extent= dc.get_text_extent(text) + x_pos = (((((page_width_mm - left_margin - right_margin)/2.0)+left_margin)*mm_to_logical) - (x_extent/2.0)) + dc.draw_text(text, x_pos.to_i, top_margin_logical) </ins><span class="cx"> </span><span class="cx"> dc.set...