/*
Polygon, Point example
This example draws a polygon in the specified shape, and fills it with the color teal. Add a paint box component to the form, and assign the following as its OnPaint event handler:
*/ 
void __fastcall TForm1::PaintBox1Paint(TObject *Sender)
{
  Windows::TPoint points[4];
  points[0] = Point(10,10);
  points[1] = Point(30,10);
  points[2] = Point(130,30);
  points[3] = Point(240,120);
  ((TPaintBox *)Sender)->Canvas->Brush->Color = clTeal;
  ((TPaintBox *)Sender)->Canvas->Polygon(points, 3);
} 
