<doc>
  <legacy_id>1245</legacy_id>
  <name>dragEnter</name>
  <type>message</type>
  <syntax>
    <example>dragEnter</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <message tag="dragLeave">dragLeave Message</message>
    <message tag="dragMove">dragMove Message</message>
    <message tag="dragStart">dragStart Message</message>
    <function tag="mouseLoc">mouseLoc Function</function>
    <message tag="mouseEnter">mouseEnter Message</message>
    <property tag="allowableDragActions">allowableDragActions Property</property>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
  </classes>
  <security>
  </security>
  <summary>Sent when the <glossary tag="mouse pointer">mouse pointer</glossary> moves into an <glossary tag="object">object</glossary> during a <glossary tag="drag and drop">drag and drop</glossary>.</summary>
  <examples>
    <example>on dragEnter <i>-- show a green outline around the drop target</i></p><p>  set the borderColor of the target to "green"</p><p>end dragEnter</example>
  </examples>
  <description>
    <p>Handle the <b>dragEnter</b> <keyword tag="message box">message</keyword> to perform an action (for example, display a special cursor or set the <property tag="acceptDrop">acceptDrop</property> <glossary tag="property">property</glossary>) when the <glossary tag="mouse pointer">mouse pointer</glossary> enters an <glossary tag="object">object</glossary>.</p><p/><p><b>Comments:</b></p><p>The <b>dragEnter</b> <keyword tag="message box">message</keyword> is sent only when a <glossary tag="drag and drop">drag and drop</glossary> operation is in progress.</p><p/><p>If two controls overlap, a <b>dragEnter</b> <keyword tag="message box">message</keyword> is sent whenever the <glossary tag="mouse pointer">mouse pointer</glossary> crosses into a visible portion of a <keyword tag="control">control</keyword>. The <keyword tag="control">control</keyword> on the bottom receives a <b>dragEnter</b> <keyword tag="message box">message</keyword> only when the <glossary tag="mouse pointer">mouse pointer</glossary> enters part of the <keyword tag="control">control</keyword> that can be seen. A <keyword tag="control">control</keyword> that is completely hidden by another <keyword tag="control">control</keyword> on top of it will never receive a <b>dragEnter</b> <keyword tag="message box">message</keyword>.</p><p/><p><img src="202651"/> <b>Tip:</b> Use the <function tag="mouseLoc">mouseLoc</function> function to determine where the <glossary tag="mouse pointer">mouse pointer</glossary> is. Use the <function tag="target">target</function> <control_st tag="function">function</control_st> to determine which <keyword tag="control">control</keyword> the <glossary tag="mouse pointer">mouse pointer</glossary> has entered.</p>
  </description>
</doc>