Results 1 to 4 of 4

Thread: Windows API - CreatePolygonRgn

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    1

    Post

    Hello I want to make a Form , with my points
    using "CreatePolygonRgn" but when i enter the wanted points , my form becomes WEIRD I don't know what points it took... It doesnt work.
    If anybody worked with CreatePolygonRgn and knows how to give the EXACT location of the needed form please help

  2. #2
    Junior Member
    Join Date
    Aug 1999
    Location
    scotland
    Posts
    25

    Post

    I found the examples found at the following to be very helpful.
    http://www.vb-world.net/controls/shapedforms/

  3. #3
    Junior Member
    Join Date
    Aug 1999
    Location
    scotland
    Posts
    25

    Post

    Evgenyg,

    If you are still confused contact me at
    [email protected] and i'll attempt to help.

    Ron

  4. #4
    New Member
    Join Date
    Jan 2000
    Location
    mount clemens, mi, us
    Posts
    12

    Post

    i think i ran into this same problem actually.
    it was a while ago, but i remember it had something to do with the polygon and the form using a different scale.

    i had to use twipsperpixelX and twipsperpixely function.

    here, i found it. the codes kinda screwy and i dont know if it's the best way to di it. but you can see where i used twipsperpixel.

    TPPX = Screen.TwipsPerPixelX
    TPPY = Screen.TwipsPerPixelY

    ReDim TEMP(PNT.lbound To PNT.ubound) As
    POINTAPI
    For Tx = PNT.lbound To PNT.ubound
    TEMP(Tx).x = PNT(Tx).Left / TPPX
    TEMP(Tx).y = PNT(Tx).Top / TPPY
    Next Tx

    [This message has been edited by ljdarten (edited 02-18-2000).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width