• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Pixels to twips - is this device independant conversion?

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Pixels to twips - is this device independant conversion?

    Have tested Pants UK on reasonable number of machines and all ok, then at last minute someone has sent me some screen dumps they got on their machine showing form backgrounds not scaling properly to screen res.

    Think problem may be that I have assumed conversion of pixles to twips is device independent (as it is on every one of the 30+ machines I have ever tried Pants UK or its predecessor on) or can the conversion vary on some oddball graphics cards?

    Ta for any ideas.

    #2
    Word to the wise....

    Not all pixels are SQUARE

    Comment


      #3
      Yes it is device independent. Most modern programming languages supply some form of conversion for you if you look deep enough, failing that the O/S should expose an API call that you can use.

      Comment


        #4
        Ta for replies. In fact it did turn out to be device dependent on this one laptop. Must be made on planet Zorg. However, that only solved some problems as the same laptop refuses to recognise the count property of control arrays. Hope this problem is as rare as it seems to be cos our first order went off today.

        Comment


          #5
          Xog,

          I did come up with a problem with this once, well 2 actually. Can't remember the exact details but I think it was to do with large fonts.

          It was VB and some of the controls seemd to scale differently. Buggered if I can remember what I did to fix it though.

          Comment


            #6
            Ta asb. Looking on net, do seem to be some problems from way VB handles controls with non standard size fonts, tho some of the problem controls I'm trying to move here are still in default fontsize. One of those mystery MS bugs I geuss.

            Comment

            Working...
            X