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

Set left and right margins


Syntax

hpLRMargin(<nLeftMarg> [,<nRightMarg>])


Parameters

<nLeftMarg>
The left margin setting specified in columns.

<nRightMarg>
The right margin setting specified in columns.  If
omitted, <nRightMarg> will remain at its current setting.


Returns

0
Successful.

-12
Wrong number of parameters passed.


Remarks

Use hpLRMargin() any time you need to set the left or right margins.
hpLRMargin() can be very helpful when printing memo fields.  Simply
set the left margin to the column position you would like to begin
printing the memo field, then print the memo field using ?? and the
Clipper function HARDCR(). This will cause the memo to print starting at
the position you specified and wrap with the automatic word-wrapping of
MEMOEDIT().  Then use hpClrMargins() to clear the margin set.  This
requires less coding than using MEMOLINE(). This will only work with
non-proportional fonts.


Support By

All HP Laserjet Printers


Example

hpPrintOn()
hpConfig()
hpSetFont()
.
.  // print routine using default margin settings
.

hpLRMargin(20,60)
.
.  // print routine using new margin settings
.

hpClrMarg()
.
.  // print again using default margin settings
.

hpReset()
hpPrintOff()

See Also: hpClrMargins() hpJust() hpTMargin()

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