Print Preview ActiveX Active Users: 132 / Visits Today: 132
Highest Active Users: 132
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 DrawPolygon - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: DrawPSet - Method Topic   


327 Posts

Posted - 07/15/2005 :  12:03:53  Show Profile
Method DrawPolygon


This method draws a polygon element in the current frame.


DrawPolygon (varrPoly() As Variant) As String

Parameter --- Description

  • varrPoly --- Polygon definition. Array of POLYVERT

    POLYVERT is a User Defined Type having the following elements:

  • x As Long
  • y As Long


    This method draws a polygon element in the current frame. When the polygon is drawn, the values of the current style are used to determine line width, color and fill. The polygon is defined as a set of vertices so the last line is drawn between the last and the first vertices to close the polygon.


    To draw a polygon:

    Redim ply(1 to 3) as POLYVERT

    With Preview

    ply(1).x = .C_Twips("1.0 in")
    ply(1).y = .C_Twips("0.5 in")
    ply(2).x = .C_Twips("2.0 in")
    ply(2).y = .C_Twips("0.5 in")
    ply(3).x = .C_Twips("2.0 in")
    ply(3).y = .C_Twips("1.5 in")

    End With

    Preview.DrawPolygon ply
    Go to Bottom of Page
      Previous Topic: DrawPSet - Method Topic   
     New Topic  Topic Locked
     Printer Friendly
    Jump To:
    Print Preview ActiveX © Mandix Go To Top Of Page
    This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.02