LPFILLRECT
|
Syntax: |
LPFILLRECT(<Type>, <Line>, <Column>,
<Height in Lines>, <Width in Columns>, <Red>, <Green>,
<Blue> [,<Report>])
|
||||||||||||||||||
|
|
|
||||||||||||||||||
|
Meaning: |
Fills a rectangle on the print document with
color <Red>,<Green>,<Blue>. <Line> and <Column> define the
upper left corner and <Height in Lines> and <Width in Columns>
define the height and width of the rectangle. <Type> specifies the measure for the
parameters <Line>,<Column>,<Height in Lines> and <Width
in Columns>.
If
<Report> <> 0 and LPFILLRECT is executed during a report, the
number of the current line of the report (this is LINES
+ 1) is added to <Line>. This can be used to draw rectangles in the
current line of a report. When a macro of a report is executed LINES + 1
contains always the number of the current print line. However this number can
change later, e.g. if at the end of the data block it has become apperent
that a group change has occured. This function only has an effect with ENABLE LPGDI. LPFILLRECT returns the result –1 with DISABLE LPGDI, otherwise 1. |
||||||||||||||||||
|
Parameter: |
|
||||||||||||||||||
|
Sample: |
/* Gray rectangle 20 x 45 millimeter H% = LPFILLRECT(3,40,30,20,40,192,192,192) /* Print a rectangle in
the current report line H% = LPFILLRECT(4,0,30,1,5,255,255,0,1) |
||||||||||||||||||
|
See also: |
|