|
-
Feb 11th, 2000, 06:35 PM
#1
Thread Starter
New Member
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
-
Feb 14th, 2000, 04:58 PM
#2
Junior Member
I found the examples found at the following to be very helpful.
http://www.vb-world.net/controls/shapedforms/
-
Feb 15th, 2000, 06:56 PM
#3
Junior Member
Evgenyg,
If you are still confused contact me at
[email protected] and i'll attempt to help.
Ron
-
Feb 17th, 2000, 10:41 PM
#4
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|