<doc>
  <legacy_id>1707</legacy_id>
  <name>focusColor</name>
  <type>property</type>
  <syntax>
    <example>set the focusColor of <i>object</i> to {empty |<i> colorName</i> |<i> RGBColor</i>}</example>
  </syntax>
  <library></library>
  <objects>
    <stack/>
    <card/>
    <group/>
    <field/>
    <button/>
    <graphic/>
    <scrollbar/>
    <player/>
    <image/>
  </objects>
  <synonyms>
    <synonym>eighthColor</synonym>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <command tag="focus">focus Command</command>
    <keyword tag="effective">effective 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>Specifies the color of the outline around the <glossary tag="active control">active control</glossary> or the <keyword tag="field">field</keyword> with the <glossary tag="insertion point">insertion point</glossary>.</summary>
  <examples>
    <example>set the focusColor of me to "black"</example>
    <example>set the focusColor of button "Help" to 128,128,255</example>
  </examples>
  <description>
    <p>Use the <b>focusColor</b> <glossary tag="property">property</glossary> to specify the outline color of an <glossary tag="object">object</glossary> when it's active.</p><p/><p><b>Value:</b></p><p>The <b>focusColor</b> of an <glossary tag="object">object</glossary> is any valid <href tag="reference/color_reference.rev">color reference</href>.</p><p/><p>The <i>colorName</i> is any standard color name.</p><p/><p>The <i>RGBColor</i> consists of three comma-separated <glossary tag="integer">integers</glossary> between zero and 255, specifying the level of each of red, green, and blue; or an HTML-style color consisting of a hash mark (#) followed by three <glossary tag="hexadecimal">hexadecimal</glossary> numbers, one for each of red, green, and blue.</p><p/><p>By default, the <b>focusColor</b> for all <glossary tag="object">objects</glossary> is empty.</p><p/><p><b>Comments:</b></p><p>Setting the <b>focusColor</b> of an <glossary tag="object">object</glossary> to empty allows the <b>focusColor</b> of the <glossary tag="object">object's</glossary> <property tag="owner">owner</property> to show through. Use the <keyword tag="effective">effective</keyword> <glossary tag="keyword">keyword</glossary> to find out what color is used for the <glossary tag="object">object</glossary>, even if its own <b>focusColor</b> is empty.</p><p/><p>If the <b>focusColor</b> is not set for any <glossary tag="object">object</glossary> in the <glossary tag="object hierarchy">object hierarchy</glossary>, the system setting is used.</p><p/><p>The setting of the <b>focusColor</b> <glossary tag="property">property</glossary> has different effects, depending on the <glossary tag="object type">object type</glossary>:</p><p/><p>* The <b>focusColor</b> of a <object tag="stack">stack</object>, <keyword tag="card">card</keyword>, or <command tag="group">group</command> determines the <b>focusColor</b> of each <glossary tag="object">object</glossary> in the <object tag="stack">stack</object>, <keyword tag="card">card</keyword>, or <command tag="group">group</command> that does not have its own <b>focusColor</b>.</p><p/><p>* The <b>focusColor</b> of a <keyword tag="button">button</keyword> is used to outline the <keyword tag="button">button</keyword> when it is <glossary tag="focus">focused</glossary>. If the <glossary tag="button">button's</glossary> <property tag="style">style</property> is<code> menu</code>, or if the button's <b>traversalOn</b> <glossary tag="property">property</glossary> is false, the <b>focusColor</b> has no effect.</p><p/><p>* The <b>focusColor</b> of a <keyword tag="field">field</keyword> or <keyword tag="scrollbar">scrollbar</keyword> is used to outline the <glossary tag="object">object</glossary> when it is <glossary tag="focus">focused</glossary>. If the <glossary tag="object">object's</glossary> <property tag="traversalOn">traversalOn</property> <glossary tag="property">property</glossary> is false, the <b>focusColor</b> has no effect.</p><p/><p>* The <b>focusColor</b> of a <keyword tag="graphic">graphic</keyword>, <keyword tag="player">player</keyword>, <object tag="audioClip">audioClip</object>, <object tag="videoClip">videoClip</object>, or <glossary tag="EPS">EPS object</glossary> has no effect.</p><p/><p>* The <b>focusColor</b> of an <keyword tag="image">image</keyword> is the eighth color in the image's <glossary tag="color palette">color palette</glossary>.</p><p/><p>If an object's <b>focusPattern</b> is set, the pattern is shown instead of the color specified by the <b>focusColor</b>.</p><p/><p>The <b>focusColor</b> <glossary tag="property">property</glossary> has no effect on <glossary tag="control">controls</glossary> whose <property tag="showFocusBorder">showFocusBorder</property> <glossary tag="property">property</glossary> is set to false.</p><p/><p>If the <b>lookAndFeel</b> is set to "Macintosh" or "Appearance Manager", the <property tag="focusColor">focusColor</property> affects only fields.</p>
  </description>
</doc>