Hi.
A very basic way to get the information is as follows:
environment lnv_env
getenvironment(lnv_env)
// Your screen resolution.
messagebox("", string(lnv_env.screenwidth) + " / " + string(lnv_env.screenheight))
// Positions of a frame called w_frame...
messagebox("", string(UnitsToPixels(w_frame.x, XUnitsToPixels!)) + " / " + string(UnitsToPixels(w_frame.y, YUnitsToPixels!)))
messagebox("", string(UnitsToPixels(w_frame.width, XUnitsToPixels!)) + " / " + string(UnitsToPixels(w_frame.height, YUnitsToPixels!)))
You should be aware that in case you have more than one displays, this will work for the display where your application shows...
With that information you can do your calculations.
Andreas.
Thanks, that helped me to solve my issue. Had altogether forgotten the getenvironment-thing.
Kari