<doc>
  <legacy_id>1743</legacy_id>
  <name>focusIn</name>
  <type>message</type>
  <syntax>
    <example>focusIn</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <command tag="focus">focus Command</command>
    <message tag="resume">resume Message</message>
    <message tag="openField">openField 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 to a <keyword tag="control">control</keyword> when it becomes <glossary tag="active control">active (focused)</glossary>.</summary>
  <examples>
    <example>on focusIn <code><i>-- boldface the text of the control</i></code></p><p>  set the textStyle of the target to "bold"</p><p>end focusIn</example>
  </examples>
  <description>
    <p>Handle the <b>focusIn</b> <keyword tag="message box">message</keyword> if you want to perform preparation or do other tasks when a control receives the <glossary tag="focus">keyboard focus</glossary>.</p><p/><p><b>Comments:</b></p><p>If the control is an unlocked field or a button whose <b>menuMode</b> is "comboBox", the <message tag="openField">openField</message> <keyword tag="message box">message</keyword> is sent to it instead of the <b>focusIn</b> <keyword tag="message box">message</keyword>.</p><p/><p>A locked field receives the <b>focusIn</b> <keyword tag="message box">message</keyword> when the user tabs to it or otherwise makes it <glossary tag="active control">active (focused)</glossary>, or when text in it is <property tag="selected">selected</property> by a <glossary tag="handler">handler</glossary>.</p>
  </description>
</doc>