globalLoc returns wrong values!

Tiemo Hollmann TB toolbook at kestner.de
Wed Apr 23 11:14:32 CEST 2014


Hi,

With LC 6.5.2 on Windows 7 I am taking a screenshot from a rect like this:

   put globalLoc (the topleft of image "Image") into tTopLeft

   put globalLoc (the bottomright of image "Image") into tBotRight

   put tTopLeft & "," & tBotRight into tRectSnap

   export snapshot from rect tRectSnap to tScreenshot as PNG

This works fine, beside when the user changes the textsize to 150% in his
display settings. Then the snapshot rect is shifted and the user gets wrong
content in his snapshot.

 

Has anybody stumpled upon this issue yet and has found a workaround for
this? Perhaps checking a windows system setting and recalculating the rect?

 

I know, you can change the textsize on mac too, but that's really only the
TEXT size and that doesn't bother my LC program. On windows this option is
actually not only the text size, but the whole screen is resized. Is there
something similar on Mac, what could cause a similar problem, what I didn't
find yet?

 

Thanks for any ideas

 

Tiemo



More information about the use-livecode mailing list