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>hprjust()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpRJust()

Right justify a string on the page


Syntax

hpRJust(<cString> [,<nRow> [,<nCol> [,<cUnits>]]])


Parameters

<cString>
The character string to right justify.

<nRow>
The row coordinate.  If <nRow> is omitted, <cString> will
be justified at right edge of the page on the current line.

<nCol>
The column coordinate where 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.

<cUnits>
The units of measurement to used for positioning.
Defaults to 'R'.  Values for <cUnits> can be:
"R"     Rows and Columns
"I"     Inches
"M"     Millimeters


Returns

0
Successful.

-10
Font information is missing.  hpSetFont( ) must be called first.

-12
Wrong number of parameters passed.

-17
Invalid parameter type was passed.


Remarks

Use hpRJust() any time you need to right justify a string, or several
strings, on a page.  This function will work with any font.

Note:  To right justify a proportional font, use hpIRJust().


Support By

All HP Laserjet Printers


Example

hpPrintOn()
hpConfig()
hpSetFont('LGOTHIC 12', 'N')
hpRJust('These strings will all be right justified', 1)
hpRJust('against the right edge of the page.', 2)
hpRJust('These strings will be right', 5, 30)
hpRJust('justified at column 30', 6, 30)
hpPrintOff()

hpRJust() can also be combined with Escape!'s other functions:

hpRJust(hpBold('Right justified & bold at line 1'), 1)
hpRJust(hpUnderln('Right justified & underlined'))

See Also: hpIRJust() hpCenter() hpICenter()

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