|
-
Feb 20th, 2002, 07:36 AM
#1
Thread Starter
Hyperactive Member
Coordinates of the control
Hi everybody
I always find it difficult converting the coordinates of controls on
the form due to various scalemode like Twips, pixels.
Is there any standard method to convert the .Left, .Top ,.Width
properties to X and Y coordinates which can be used in functions
like SetPixel, CreateRectRgn (Especially function for Regions)
Please help me.
-
Feb 20th, 2002, 10:37 AM
#2
VB Code:
X = Control.Left / Screen.TwipsPerPixelsX
Y = Control.Top / Screen.TwipsPerPixelsY
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
|