Board index » delphi » PolyPolyLine/PolyPolygon functions
abdellah EL-Idrysy
![]() Delphi Developer |
Thu, 14 Aug 2003 20:54:03 GMT
PolyPolyLine/PolyPolygon functions
Hi everybody,
I tried to use Windows API PolyPolyline and polypolygon functions in a graphics routine to draw multi-segments or multipolygons at once but couldn't use Delphi dynamic arrays. Here are the declarations and code that I used: var Points: array of TPoint; //Points is read at run time from a file PolyPts: array of Integer; //PolyPts holds the number of points After the arrays (i.e., Points, and PolyPts) are loaded with data at run When I changed the array declarations from dynamic to static like this: This time the code compiles and runs correctly and I have the lines and Can anyone see where is the problem? Many thanks for any clarifications |