DrawRegPoly

Syntax:

DrawRegPoly( PosX, PosY, Width, Height, Sides )

Parameters:

PosX – X coordinate of the top left of the bounding rectangle containing the shape. This parameter is required.

PosY – Y coordinate of the top left of the rectangle containing the shape. This parameter is required.

Width – Width of the rectangle containing the shape. This parameter is required.

Height – Height of the rectangle containing the shape. This parameter is required.

Sides – Number of sides for the regular shape. The range is from 3 to 50. This parameter is required.

Note:
All positions are in untransformed page coordinates. To avoid making your calculations too complex we strongly advise using untransformed (i.e. not rotated or scaled) frames when using the drawing functions.

Remarks:

This function allows regular polygon shapes to be drawn into a frame object.

Note:
All lines and shapes added to any individual frame are created as part of a single contour (this is a single continuous line). Adding intersecting shapes will produce gaps in the shape. To draw multiple independent shapes, use multiple frame objects.

image\Script_Button.jpgExamples