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

Draw a box filled with one of several different fill patterns, coordinates
specified in inches


Syntax

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


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

<nPattern>
Specifies the type of fill pattern used to fill the box.
There are six different fill patterns to choose from.  To
specify a pattern use any value from 1 to 6.  If omitted,
<nPattern> will default to pattern 1. See "Appendix B -
Shades and Fill Patterns" for a description of the
available patterns.


Returns

0
Successful.

-12
Wrong number of parameters passed.

-14
Invalid box coordinates specified.


Remarks

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

Whenever creating custom charts or forms, try using hpIPattBox() to get
that extra 'color'.


Support By

All HP Laser Printers except the original HP Laserjet


Example

hpIPattBox(1,2,2,3)       // pattern 1/single line border

hpIPattBox(1,2,2,3,0)     // pattern 1/no border

hpIPattBox(1,2,2,3,3,6)   // pattern 6/dotted border

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

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