Board index » cppbuilder » Canvas->Polygon();
Martin Getros
![]() CBuilder Developer |
Sat, 08 Nov 2003 20:30:32 GMT
Canvas->Polygon();
Hello,
I want to use Canvas->Polygon(); at my Form. At the example I found: void __fastcall TForm1::PaintBox1Paint(TObject *Sender) Quote} { POINT points[4]; points[0] = Point(10,10); points[1] = Point(30,10); points[2] = Point(130,30); points[3] = Point(240,120); Canvas->Brush->Color = clRed; Canvas->Polygon(points, 3); // line with error Quote} E2034 Cannot convert 'tagPOINT *' to 'const TPoint *'. E2343 Type mismatch in parameter 'Points' in call to '__fastcall TCanvas::Polygon(const TPoint*,const int)'. Why??? |