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.
Printable View
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.
??????????????????????????
Regardles of any utility you may use - you cannot change units of measure - result will always be the same.
I think Twips are a VB thing. The API deals with Pixels.
Try the GetSystemMetrics API, it may have what you need.
I don't care about the result but i need an alternative of these 2 functions.Quote:
Originally posted by McGenius
??????????????????????????
Regardles of any utility you may use - you cannot change units of measure - result will always be the same.
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.Quote:
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.
What exactly are you trying to do?
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 ?Quote:
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.
Thanks guys, I found my solution.
Can you enlighten us with the solution?