1. I am trying to find and save in variables, the x and y coordinates for the TOPLEFT anchor point of a frame.

    So far, I can use :GetRect() to get some values, or :GetTop() and :GetLeft(). Unfortunately, each of these use the bottom left corner of the screen as a reference point, and I'm not sure how to calculate the "y" value in reference to the top of the screen instead of the bottom.

    Some questions:

    1. Is there a virtual screen size being used? For example, I figured out that my current WoW screen size is 1200px tall even though in actuality, I have my resolution set much "taller". So :GetTop()-1200 gives me the correct value of "y" in reference to the top of the screen. (For argument sake, assume the window has no height.)

    2. If there is NOT a virtual 1200px tall screen size in use, how do I find the current screen height?

    Thanks!

    Edit: Clarification.

  2. I am trying to find and save in variables, the x and y coordinates for the TOPLEFT anchor point of a frame.

    So far, I can use :GetRect() to get some values, or :GetTop() and :GetLeft(). Unfortunately, each of these use the bottom left corner of the screen as a reference point, and I'm not sure how to calculate the "y" value in reference to the top of the screen instead of the bottom.

    Get with reference to the bottom left and the convert it. That's it!

    Some questions:

    1. Is there a virtual screen size being used? For example, I figured out that my current WoW screen size is 1200px tall even though in actuality, I have my resolution set much "taller". So :GetTop()-1200 gives me the correct value of "y" in reference to the top of the screen. (For argument sake, assume the window has no height.)

    Yes, WoW has its own 'pixel' system that does not correspond to your screen resolution.

    1. If there is NOT a virtual 1200px tall screen size in use, how do I find the current screen height?

    GetScreenHeight() and GetScreenWidth() should be useful.