|
-
Feb 20th, 2003, 02:59 PM
#1
Thread Starter
Let me in ..
Screen.TwipsPerPixelX
Is there any API that can do exactly what Screen.TwipsPerPixelX and Screen.TwipsPerPixelY returns ? It always return 15 for me. However there is a situation when I cannot use these functions and i need to find an alternative.
-
Feb 20th, 2003, 03:14 PM
#2
Frenzied Member
??????????????????????????
Regardles of any utility you may use - you cannot change units of measure - result will always be the same.
-
Feb 20th, 2003, 03:15 PM
#3
I think Twips are a VB thing. The API deals with Pixels.
Try the GetSystemMetrics API, it may have what you need.
-
Feb 20th, 2003, 03:18 PM
#4
Thread Starter
Let me in ..
Originally posted by McGenius
??????????????????????????
Regardles of any utility you may use - you cannot change units of measure - result will always be the same.
I don't care about the result but i need an alternative of these 2 functions.
-
Feb 20th, 2003, 03:21 PM
#5
Thread Starter
Let me in ..
Originally posted by brucevde
I think Twips are a VB thing. The API deals with Pixels.
Try the GetSystemMetrics API, it may have what you need.
I already checked this API, It does not do that. I need an alternative. I do not want to hardcode this value as it may change somewhere else.
-
Feb 20th, 2003, 03:30 PM
#6
What exactly are you trying to do?
-
Feb 20th, 2003, 03:33 PM
#7
Frenzied Member
I'm not going to argue or anything like that but just want to mention: those two properties are returning numbers you need. You don't have hardcode anything. Sounds really weird.
-
Feb 20th, 2003, 03:57 PM
#8
Thread Starter
Let me in ..
Originally posted by McGenius
I'm not going to argue or anything like that but just want to mention: those two properties are returning numbers you need. You don't have hardcode anything. Sounds really weird.
Just believe me for sometime that i cannot use those two properties irrespective of what they return. I just cannot mention those properties in my code. Now what is the alternative ?
-
Feb 20th, 2003, 04:08 PM
#9
Thread Starter
Let me in ..
Thanks guys, I found my solution.
-
Feb 20th, 2003, 04:13 PM
#10
Can you enlighten us with the solution?
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
|