<doc>
  <legacy_id>2193</legacy_id>
  <name>mouseRelease</name>
  <type>message</type>
  <syntax>
    <example>mouseRelease <i>mouseButtonNumber</i></example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <message tag="mouseStillDown">mouseStillDown Message</message>
    <message tag="dragEnd">dragEnd Message</message>
  </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>Sent when the user releases the mouse outside the <keyword tag="control">control</keyword> that was clicked.</summary>
  <examples>
    <example>on mouseRelease theButton</p><p>  if theButton is 1 then send "mouseUp" to the target</p><p>  else pass mouseRelease</p><p>end mouseRelease</example>
  </examples>
  <description>
    <p>Handle the <b>mouseRelease</b> <keyword tag="message box">message</keyword> to perform an action when the user releases the <glossary tag="mouse button">mouse button</glossary> after clicking and then dragging outside the <keyword tag="control">control</keyword>.</p><p/><p><b>Parameters:</b></p><p>The <i>mouseButtonNumber</i> specifies which <glossary tag="mouse button">mouse button</glossary> was pressed:</p><p>        * 1 is the mouse button on Mac OS systems and the left button on Windows and Unix systems.</p><p>        * 2 is the middle button on Unix systems.</p><p>        * 3 is the right button on Windows and Unix systems and Control-click on Mac OS systems.</p><p/><p><b>Comments:</b></p><p>The <b>mouseRelease</b> <keyword tag="message box">message</keyword> is sent to the <keyword tag="control">control</keyword> that was originally clicked, or to the <keyword tag="card">card</keyword> if no <keyword tag="control">control</keyword> was under the <glossary tag="mouse pointer">mouse pointer</glossary>.</p><p/><p>The <b>mouseRelease</b> <keyword tag="message box">message</keyword> is sent only when the <glossary tag="Browse tool">Browse tool</glossary> is being used.</p><p/><p>If an unlocked field is clicked with mouse button 1 or 2, no <b>mouseRelease</b> <keyword tag="message box">message</keyword> is sent.</p><p/><p>If the control is a field with its <b>listBehavior</b> <glossary tag="property">property</glossary> set to true, the <b>mouseRelease</b> <keyword tag="message box">message</keyword> is sent when the <glossary tag="mouse button">mouse button</glossary> is released and the mouse is not over a text line in the <keyword tag="field">field</keyword>, even if the mouse is still over the <keyword tag="field">field</keyword>.</p><p/><p>If the mouse is released while it's still within the control that was clicked, a <b>mouseUp</b> <keyword tag="message box">message</keyword> is sent instead of <b>mouseRelease</b>.</p>
  </description>
</doc>