Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Escape! V3.0 - <b>hpirjust()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpIRJust()

Right justify a string on the page, coordinates specified in inches


Syntax

hpIRJust(<cString> [,<nRow> [,<nCol>]])


Parameters

<cString>
The character string to right justify.

<nRow>
The vertical distance from the top margin to print the
specified string.  If <nRow> is omitted, Escape! will print
the string at the current row.

<nCol>
The desired position, in inches, that the right edge of
the string <cString> is to fall on.  If <nCol> is omitted,
ESCAPE will automatically right justify the string at the
rightmost edge of your paper, regardless of its size.


Returns

0
Successful.

-10
ESC_FONT was not initialized, or was released.

-12
Wrong number of parameters passed.


Remarks

hpIRJust() is included for compatibility with earlier versions of Escape!.
The use of hpIRJust() is not recomended because it can be functionally
replaced by hpRJust() with 'I' (for Inches) passed as the <cUnits>
parameter.

Use hpIRJust() any time you need to right justify a string, or several
strings, on a page.  This function will work with any font.  hpIRJust() is
especially useful when working with proportional fonts.  Anyone who
has ever tried to print with proportional fonts knows how irritating it can
be, especially when trying to print columns of numbers.


Support By

All HP Laserjet Printers


Example

hpPrintOn()
hpConfig()
hpSetFont('HELV 14B', 'F')

hpIRJust('These lines will all be', 1)
hpIRJust('right justified against', 2)
hpIRJust('the right edge of the page.', 3)
hpSetFont('TMSRMN 10I', 'K')      // change font
hpIRJust('Even if you', 5)
hpIRJust('change fonts', 6)

hpReset()
hpPrintOff()

See Also: hpRJust() hpICenter() hpCenter() hpL2I() hpC2I() hpIAtSay() hpS2I()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson