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

Converts horizontal character spacing to millimeters


Syntax

hpC2M(<nCol>)


Parameters

<nCol>
The column coordinate to convert to millimeters.


Returns

<n>
Millimeter equivalent of passed column coordinate.

-10
ESC_FONT was not initialized, or was released.

-12
Wrong number of parameters passed.


Remarks

Many programmers outside of the U.S. may prefer to position text in
millimeters rather than inches.  For these people, hpC2M() may be a
handy function.  It may be especially useful when mixing rows and
columns with millimeters.


Support By

All HP Laserjet Printers


Example

Suppose you want to place a string at some fixed position at the bottom
of your report, and lined up specifically at a certain column.

hpPrintOn()
hpConfig()
hpSetFont()
.
.
.

****
* print report number at the bottom of
* the page (250mm down), and lined up
* on the left with field1
****
hpAtSay(250, hpC2M(5), 'Report # 01-25-00', 'M')
hpReset()
hpPrintOff()

See Also: hpC2I() hpS2M() hpL2M()

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