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

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


Syntax

hpIPattBar(<nRow>, <nCol>, <nLength> [,<nBorder> [,<nPattern]])


Parameters

<nRow>
The vertical distance from the top margin to print the
gray bar. <nRow> is specified in inches.

<nCol>
The horizontal distance from the left margin to begin
printing the bar.  <nCol> is specified in inches.

<nLength>
The length of the bar.  <nLength> is specified in inches,
and is accurate up to two decimal places.

<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 draw the bar.
There are six different fill patterns to choose from.  To
specify a pattern use any value from 1 to 6.  If omitted,
<nShade> 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.


Remarks

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

Try adding special effects with hpIPattBar() to attract attention to your
reports.  hpIPattBar() can be used to easily create horizontal graph
bars, or to mark off special sections on custom forms.


Support By

All HP Laser Printers except the original HP Laserjet


Example

To draw a simplistic bar graph:
nSales86 = 3
nSales87 = 4
nSales88 = 7

hpIPattBar(hpL2I(1), 0, nSales86, 1, 1)
hpIPattBar(hpL2I(3), 0, nSales87, 1, 2)
hpIPattBar(hpL2I(5), 0, nSales88, 1, 3)

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

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