what units userform.left , userform.top in word 2013 vba? msdn doesn't say. this answer suggests may twips, on system, coming out 0.75*pixels.
that is, screen 1920x1200 userform moved lower-right corner has left=1440=1920*0.75 , top=900=1200*0.75. system has 2 monitors, each 1920x1200, screen resolution 96 dpi, , twipsperpixel[xy] both return 15. three-quarters of pixel, or there other system metric need check?
well, answer staring me in face, here in case else benefits. if have more robust answer, please post it!
the units points, 72 per inch. (72 = 96 dpi * 0.75.) converted pixels points with
pts = application.pixelstopoints(pxls) and used pts left , top. width , height in points on system.
Comments
Post a Comment