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

Draw boxes with one of several different line types with coordinates
specified in inches


Syntax

hpIBox(<nTop>, <nLeft>, <nBottom>, <nRight> [,<nBorder>])


Parameters

<nTop>
The distance from the top margin to draw the top side of
the box.  <nTop> is specified in inches.

<nLeft>
The distance from the left margin to draw the left side of
the box.  <nLeft> is specified in inches.

<nBottom>
The distance from the top margin to draw the bottom
side of the box.  <nBottom> is specified in inches.

<nRight>
The distance from the left margin to draw the right side
of the box.  <nRight> is specified in inches.

<nBorder>
The line type used for the border.  Defaults to 1.  Values can be:
0       No border
1       Single line
2       Double line
3       Dotted line
4       Hairline
5       0.5 point
6       1 point
7       2 point
8       3 point
9       4 point
10      6 point
11      8 point


Returns

0
Successful.

-12
Wrong number of parameters passed.

-14
Box coordinates specified in wrong order.


Remarks

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

If <nTop> and <nBottom> are the same, Escape! draws a horizontal line.
If <nLeft> and <nRight> are the same, Escape! draws a vertical line.
Use hpIBox() to draw lines and boxes anywhere on the page.


Support By

All HP Laser Printers except the original HP Laserjet


Example

hpIBox(0,0,8,10.5,1)   // enclose entire page in box

hpIBox(1,0,1,5,1)      // horizontal single line

hpIBox(1,0,10,0,2)     // vertical double line

hpIBox(1,0,1,6,3)      // horizontal dotted line

See Also: hpIGrayBar() hpIGrayBox() hpIGrayCol() hpIPattBar() hpIPattBox() hpIPattCol()

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