<doc>
  <legacy_id>1403</legacy_id>
  <name>foregroundColor</name>
  <type>property</type>
  <syntax>
    <example>set the foregroundColor of <i>object</i> to {empty | <i>colorName </i>| <i>RGBColor</i>}</example>
    <example>set the foregroundColor of [<i>chunk</i> of] <i>field</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>foreColor</synonym>
    <synonym>firstColor</synonym>
    <synonym>textColor</synonym>
    <synonym>thumbColor</synonym>
    <synonym>fillFore</synonym>
    <synonym>penFore</synonym>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <command tag="answer color">answer color Command</command>
    <function tag="mouseColor">mouseColor Function</function>
    <keyword tag="colorPalette">colorPalette Keyword</keyword>
    <keyword tag="effective">effective Keyword</keyword>
    <property tag="HTMLText">HTMLText Property</property>
    <property tag="linkColor">linkColor Property</property>
    <property tag="linkHiliteColor">linkHiliteColor Property</property>
    <property tag="foregroundPattern">foregroundPattern Property</property>
    <property tag="RTFText">RTFText Property</property>
  </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 <glossary tag="object">object</glossary> text and borders.</summary>
  <examples>
    <example>set the foregroundColor of button "Help!" to "red"</example>
    <example>set the foregroundColor of this card to "#FF00FF"</example>
    <example>set the foregroundColor of the mouseChunk to 0,255,0</example>
  </examples>
  <description>
    <p>Use the <b>foregroundColor</b> <glossary tag="property">property</glossary> to change the color of text or the color that fills an <glossary tag="object">object</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>foregroundColor</b> of an <glossary tag="object">object</glossary> is a <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 <glossary tag="HTML">HTML</glossary>-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>foregroundColor</b> for all <glossary tag="object">objects</glossary> is empty.</p><p/><p><b>Comments:</b></p><p>Setting the <b>foregroundColor</b> of an <glossary tag="object">object</glossary> to empty allows the <b>foregroundColor</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>foregroundColor</b> is empty.</p><p/><p>The setting of the <b>foregroundColor</b> <glossary tag="property">property</glossary> has different effects, depending on the <glossary tag="object type">object type</glossary>:</p><p/><p>* The <b>foregroundColor</b> of a <object tag="stack">stack</object>, <keyword tag="card">card</keyword>, or <command tag="group">group</command> determines the <b>foregroundColor</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>foregroundColor</b>.</p><p/><p>* The <b>foregroundColor</b> of a <keyword tag="button">button</keyword> is used for the text of the <keyword tag="button">button</keyword>. If the <glossary tag="button">button's</glossary> <property tag="showName">showName</property> <glossary tag="property">property</glossary> is false, the <b>foregroundColor</b> has no effect.</p><p/><p>* The <b>foregroundColor</b> of a <keyword tag="field">field</keyword> determines the color of the <glossary tag="field">field's</glossary> text. If you set the <b>foregroundColor</b> of a <glossary tag="chunk">chunk</glossary> of a <keyword tag="field">field</keyword>, only that <glossary tag="chunk">chunk</glossary> is affected. If a <glossary tag="chunk">chunk</glossary> of text contains text of more than one color, the <b>foregroundColor</b> of that <glossary tag="chunk">chunk</glossary> reports "mixed".</p><p/><p>The <b>foregroundColor</b> also determines the color of the blinking <glossary tag="insertion point">insertion point</glossary> when it is in the <keyword tag="field">field</keyword>.</p><p/><p>* The <b>foregroundColor</b> of a <keyword tag="scrollbar">scrollbar</keyword> determines the text color used to show the <function tag="value">value</function> of the <glossary tag="scrollbar">scrollbar's</glossary> current position. If the <glossary tag="scrollbar">scrollbar's</glossary> <property tag="showValue">showValue</property> <glossary tag="property">property</glossary> is false, the <b>foregroundColor</b> has no effect.</p><p/><p>* The <b>foregroundColor</b> of a <keyword tag="graphic">graphic</keyword> determines the color of the <glossary tag="graphic">graphic's</glossary> outline. (The <glossary tag="graphic">graphic's</glossary> border is outside the outline. By <keyword tag="default">default</keyword>, the <property tag="showBorder">showBorder</property> <glossary tag="property">property</glossary> of newly-created <glossary tag="graphic">graphics</glossary> is set to false, so this border is not visible.)</p><p/><p>* The <b>foregroundColor</b> of a <keyword tag="player">player</keyword>, <glossary tag="audio clip">audio clip</glossary>, <glossary tag="video clip">video clip</glossary>, or <glossary tag="EPS">EPS object</glossary> has no effect.</p><p/><p>* The <b>foregroundColor</b> of an <keyword tag="image">image</keyword> is the first color in the <glossary tag="image">image's</glossary> <glossary tag="color palette">color palette</glossary>.</p><p/><p>If an object's <b>foregroundPattern</b> is set, the pattern is shown instead of the color specified by <b>foregroundColor</b>.</p>
  </description>
</doc>