Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>polyline()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PolyLine()
Draw a series of connected lines
------------------------------------------------------------------------------

Syntax
PolyLine( <hDC>, <aPoints> )   -->   lSuccess

Arguments
<hDC> is a handle to the device context on which to draw.

<aPoints> is an array of points.  Each point is itself an
array giving the x- and y- position of the point.

Returns
If successful, logical TRUE (.T.) is returned, otherwise FALSE
(.F.) is returned.

Description
This function draws lines between a series of points, using
the current pen.  The current position (e.g. as set by the
MoveTo() function) is not used or changed.

Example
aPoints = {  { 100, 100 },  { 200, 100 },  { 200, 200 },  {100, 200 }  }
PolyLine( hDC, aPoints )           // 3 sides of a square


See Also: GetDC() Polygon() Rectangle()

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