Search
FlowChart.SetPolyShape Method
See Also
 



Sets default shape for new boxes of type bsPolygon.

 Syntax

VB6  Copy Code

Public Sub SetPolyShape( _
    ByVal count As Integer, _
    ByRef ptc As Byte _
)

C++  Copy Code

public:
void SetPolyShape (
    short count,
    unsigned char* ptc
)

 Parameters

count
The number of points in the custom shape.
ptc

The points coordinates.

 Remarks

Sets default shape for new boxes of type bsPolygon. There is no restriction as to what polygonal form can be created. The count parameter is the number of points defining the shape.  In the array of byte values passed as second parameter the (x, y) coordinates are set as percents of the rectangle bounding the form.

You can define as complex shapes as you need.

 Example

To pass a rectangle use following array: {0, 0, 100, 0, 100, 100, 0, 100 }. To pass a rhombus use: {50, 0, 100, 50, 50, 100, 0, 50}. If the user places this rhombus on a position with bounding rectangle (100, 100) - (300, 200) then the rhombus points calculated from the percent array shall be (200, 100) - (300, 150) - (200, 200) - (100, 150).

 See Also