<doc>
  <legacy_id>1149</legacy_id>
  <name>mouseH</name>
  <type>function</type>
  <syntax>
    <example>the mouseH</example>
    <example>mouseH()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <function tag="mouseV">mouseV Function</function>
    <function tag="clickH">clickH Function</function>
  </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 horizontal position of the <glossary tag="mouse pointer">mouse pointer</glossary>.</summary>
  <examples>
    <example>the mouseH</example>
    <example>add the mouseH to totalWidth</example>
  </examples>
  <description>
    <p>Use the <b>mouseH</b> <control_st tag="function">function</control_st> to find out where the <glossary tag="mouse pointer">mouse pointer</glossary> is.</p><p/><p><b>Value:</b></p><p>The <b>mouseH</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> an <keyword tag="integer">integer</keyword>.</p><p/><p><b>Comments:</b></p><p>The returned value is the horizontal distance in pixels from the left edge of the current stack to the location of the mouse pointer. (Use the <b>defaultStack</b> <glossary tag="property">property</glossary> to identify the current <object tag="stack">stack</object>.)</p><p/><p>If the <b>mouseH</b> is positive, the <keyword tag="pointer">pointer</keyword> is to the right of the leftmost edge of the <glossary tag="stack window">stack window</glossary>. If the number is <glossary tag="negative">negative</glossary>, the <keyword tag="pointer">pointer</keyword> is to the left of the <glossary tag="stack window">stack window</glossary>.</p><p/><p>This function is equal to item 1 of the <b>mouseLoc</b> <control_st tag="function">function</control_st>.</p><p/><p><b>Note:</b> When in a mouseDown handler, you can use the <function tag="clickH">clickH</function> function to get the position of the mouse as it was when the mouseDown actiion occured.</p><p/><p><img src="202651"/> <b>Tip:</b> The <message tag="mouseMove">mouseMove</message> message sends the mouse's horizontal position as a <glossary tag="parameter">parameter</glossary>. This means that in a <message tag="mouseMove">mouseMove</message> <glossary tag="handler">handler</glossary>, normally it's not necessary to use the <b>mouseH</b> <control_st tag="function">function</control_st>.</p>
  </description>
</doc>