Results 1 to 10 of 10

Thread: Screen.TwipsPerPixelX

  1. #1

    Thread Starter
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456

    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.

  2. #2
    Frenzied Member McGenius's Avatar
    Join Date
    Jan 2003
    Posts
    1,199
    ??????????????????????????
    Regardles of any utility you may use - you cannot change units of measure - result will always be the same.
    McGenius

  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    I think Twips are a VB thing. The API deals with Pixels.

    Try the GetSystemMetrics API, it may have what you need.

  4. #4

    Thread Starter
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    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.

  5. #5

    Thread Starter
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    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.

  6. #6
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    What exactly are you trying to do?

  7. #7
    Frenzied Member McGenius's Avatar
    Join Date
    Jan 2003
    Posts
    1,199
    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.
    McGenius

  8. #8

    Thread Starter
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    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 ?

  9. #9

    Thread Starter
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    Thanks guys, I found my solution.

  10. #10
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    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
  •  



Click Here to Expand Forum to Full Width