<<

Contents

Search

>>

 

LPFILLRECT

 

 

Function

 

 

Syntax:

LPFILLRECT(<Type>, <Line>, <Column>, <Height in Lines>, <Width in Columns>, <Red>, <Green>, <Blue> [,<Report>])

 

<Type>

= <NUM-EXPRESSION>

<Line>

= <NUM-EXPRESSION>

<Column>

= <NUM-EXPRESSION>

<Height in Lines>

= <NUM-EXPRESSION>

<Width in Columns>

= <NUM-EXPRESSION>

<Red>

= <NUM-EXPRESSION>

<Green>

= <NUM-EXPRESSION>

<Blue>

= <NUM-EXPRESSION>

<Report>

= <NUM-EXPRESSION>

 

 

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>.

 

Type

Measure

1

TWIPS (1 TWIP = 1/20 Point)

2

Point (1 Point = 1/72 Inch)

3

Millimeter

otherwise

Grid coordinates (Lines/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:

Type

Specifies the measure for the parameters <Line>,<Column>,<Height in Lines> and <Width in Columns>.

Line

Line of upper left corner

Column

Column of upper left corner

Height in Lines

Height of rectangle in lines

Width in Columns

Width of rectangle in columns

Red

Red value

Green

Green value

Blue

Blue value

Report

If <> 0 and a report is executed the number of the current line of the report (this is LINES + 1) is added to <Line>.

 

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:

LPDRAWRECT

LPDRAWLINE

LPCIRCLE

LPPOLYGON

FILLRECT