LPDRAWLINE
|
Syntax: |
LPDRAWLINE(<Type>, <From Y-position>,
<From X-position>, <To Y-position>, <To X-position>, <Width>,
<Red>, <Green>, <Blue> [,<Report>])
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
Meaning: |
Draws a line on the print document in the
color <Red>,<Green>,<Blue>. <Type> defines the measure for the
parameters <From Y-Position>,<From X-Position>,<To
Y-Position> and <To X-Position>.
If
<Report> <> 0 and LPDRAWLINE is executed during a report, the
number of the current line of the report (this is LINES
+ 1) is added to <From Y-position> and <To Y-position>. This can be used to draw
lines 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 a meaning with ENABLE LPGDI. LPDRAWLINE returns the result –1 with DISABLE LPGDI, otherwise 1. |
||||||||||||||||||||
|
Parameter: |
|
||||||||||||||||||||
|
Sample: |
/* Define grid with 65
lines and 80 columns LPGRIDSETTING = 65,80 /* Draw a red line from position
(5.5,8.25) to (12.7,13.34) /* with line width = 10 TWIPS H% = LPDRAWLINE(4,5.5,8.25,12.7,13.34,10,255,0,0) /* Draw a line in the
current report line H% = LPDRAWLINE(4,0,8.25,0,9,10,255,0,0,1) |
||||||||||||||||||||
|
See also: |
|