<doc>
  <legacy_id>2246</legacy_id>
  <name>globalLoc</name>
  <type>function</type>
  <syntax>
    <example>the globalLoc of <i>point</i></example>
    <example>globalLoc(<i>point</i>)</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <command tag="revSetVideoGrabberRect">revSetVideoGrabberRect Command</command>
    <keyword tag="relative">relative Keyword</keyword>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> the equivalent, in <href tag="glossary/Appearance/288.xml">global coordinates</href>, of a <keyword tag="point">point</keyword> given in <glossary tag="relative coordinates">local coordinates</glossary>.</summary>
  <examples>
    <example>globalLoc("22,173")</example>
    <example>put globalLoc(the mouseLoc) into screenLoc</example>
  </examples>
  <description>
    <p>Use the <b>globalLoc</b> <control_st tag="function">function</control_st> to translate between <href tag="glossary/Appearance/288.xml">screen coordinates</href> and <glossary tag="relative coordinates">window coordinates</glossary>.</p><p/><p><b>Parameters:</b></p><p>The <i>point</i> is any <glossary tag="expression">expression</glossary> that evaluates to a <keyword tag="point">point</keyword>--a vertical and horizontal distance from the top left of the <glossary tag="current stack">current stack</glossary>, separated by a comma.</p><p/><p><b>Value:</b></p><p>The <b>globalLoc</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> two <glossary tag="integer">integers</glossary> separated by a comma.</p><p/><p><b>Comments:</b></p><p>In window coordinates, the point<code> 0,0 </code>is at the top left of the stack window. In screen coordinates, the point<code> 0,0 </code>is at the top left of the screen.</p><p/><p>The point returned by the <b>globalLoc</b> function is relative to the top left of the screen. If the system has more than one monitor, the <b>globalLoc</b> function <glossary tag="return">returns</glossary> a <keyword tag="point">point</keyword> relative to the top left of the main screen.</p><p/><p>The first item of the return value is the horizontal distance in pixels from the left edge of the screen to the location given by <i>point</i>.  The second <keyword tag="item">item</keyword> of the <glossary tag="return value">return value</glossary> is the vertical distance from the top edge of the screen to the location given by <i>point</i>.</p>
  </description>
</doc>