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

Draw a bar filled with one of several different fill patterns


Syntax

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


Parameters

<nRow>
The row where the bar is to be drawn at.

<nCol>
The leftmost column where the bar is to begin at.

<nLength>
The length of the bar specified by number of characters.

<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,
<nPattern> will default to pattern 1. See "Appendix B -
Shades and Fill Patterns" for a description of the
available patterns.

<cUnits>
The units of measurement to used for positioning.
Defaults to 'R'.  Values for <cUnits> can be:
"R"     Rows and Columns
"I"     Inches
"M"     Millimeters


Returns

0
Successful.

-10
Font information is missing.  hpSetFont( ) must be called first.

-12
Wrong number of parameters passed.

-17
Incorrect parameter type was passed.


Remarks

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

Note:  Use hpIPattBar() when using a proportional font.


Support By

All HP Laser Printers except the original HP Laserjet


Example

cText = 'This is crossed out with a crosshatch pattern'
@ 1,0 SAY cText
hpPattBar(1,0,LEN(cText),0,6)

See Also: hpBox() hpGrayBar() hpGrayBox() hpGrayCol() hpPattBox() hpPattCol()

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