<doc>
  <legacy_id>1481</legacy_id>
  <name>hiliteColor</name>
  <type>property</type>
  <syntax>
    <example>set the hiliteColor [of <i>object</i>] to {empty | <i>colorName </i>| <i>RGBColor</i>}</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
    <synonym>markerColor</synonym>
    <synonym>thirdColor</synonym>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <property tag="armFill">armFill Property</property>
    <property tag="topColor">topColor Property</property>
    <property tag="markerLineSize">markerLineSize Property</property>
    <property tag="hiliteFill">hiliteFill Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
    <changed version="2.0"></changed>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies the color of the background when an <glossary tag="object">object</glossary>, or text in an <glossary tag="object">object</glossary>, is <property tag="hilite">highlighted</property>.</summary>
  <examples>
    <example>set the hiliteColor of field "Comments" to "red"</example>
    <example>set the hiliteColor of button ID 3 to "#336633"</example>
    <example>set the hiliteColor to 255,255,0</example>
  </examples>
  <description>
    <p>Use the <b>hiliteColor</b> <glossary tag="property">property</glossary> to specify the background color of the <property tag="selected">selected</property> text in a <keyword tag="field">field</keyword>, or the <property tag="hilite">highlighted</property> color of a clicked <glossary tag="object">object</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>hiliteColor</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 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>hiliteColor</b> for all <glossary tag="object">objects</glossary> is empty.</p><p/><p>By default, the global <b>hiliteColor</b> <glossary tag="property">property</glossary> is set to the system highlight color.</p><p/><p><b>Comments:</b></p><p>Setting the <b>hiliteColor</b> of an <glossary tag="object">object</glossary> to empty allows the <b>hiliteColor</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>hiliteColor</b> is empty.</p><p/><p>The setting of the <b>hiliteColor</b> <glossary tag="property">property</glossary> has different effects, depending on the <glossary tag="object type">object type</glossary>:</p><p/><p>* The <b>hiliteColor</b> of a <object tag="stack">stack</object>, <keyword tag="card">card</keyword>, or <command tag="group">group</command> determines the <b>hiliteColor</b> of any <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>hiliteColor</b>.</p><p/><p>* The <b>hiliteColor</b> of a <keyword tag="button">button</keyword> is used for the background of the <keyword tag="button">button</keyword> when it is <property tag="hilite">highlighted</property>. If the <keyword tag="button">button</keyword> is a <keyword tag="menu">menu</keyword>, the <b>hiliteColor</b> is used to <property tag="hilite">highlight</property> the <keyword tag="button">button</keyword>, but not the active menu choice. The <b>hiliteColor</b> has no effect if the <keyword tag="button">button</keyword> is a <glossary tag="tabbed button">tabbed button</glossary>. The <b>hiliteColor</b> has no effect until the button is <property tag="hilite">highlighted</property>.</p><p/><p><code/><img src="202652"/> <b>Cross-platform note:</b><code/> If the <property tag="lookAndFeel">lookAndFeel</property> is set to "Appearance Manager", standard and rectangle <glossary tag="button">buttons</glossary> are drawn by the operating system if the <property tag="backgroundColor">backgroundColor</property> and <property tag="backgroundPattern">backgroundPattern</property> of the <keyword tag="button">button</keyword> and all of its <glossary tag="owner">owners</glossary> is empty. In this case, the <glossary tag="button">button's</glossary> <b>hiliteColor</b> has no effect. Otherwise, the <keyword tag="button">button</keyword> is drawn by LiveCode. If the <property tag="lookAndFeel">lookAndFeel</property> is "Appearance Manager", <glossary tag="button menu">button menus</glossary> whose <property tag="menuMode">menuMode</property> is set to "option" are always drawn by the operating system, and the setting of the <glossary tag="button">button's</glossary> <b>hiliteColor</b> does not affect them.</p><p/><p>* The <b>hiliteColor</b> of a <keyword tag="field">field</keyword> determines the background color of text <glossary tag="selection">selections</glossary> in the <keyword tag="field">field</keyword>. If the <b>hiliteColor</b> of the <keyword tag="field">field</keyword> and all its <glossary tag="owner">owners</glossary> is empty, the <command tag="global">global</command> <b>hiliteColor</b> <glossary tag="property">property</glossary> is used.</p><p/><p>* The <b>hiliteColor</b> of a <keyword tag="scrollbar">scrollbar</keyword> fills the arrow boxes at the ends of the <keyword tag="scrollbar">scrollbar</keyword> when the arrows are clicked. The <b>hiliteColor</b> has no effect until the arrows are clicked.</p><p/><p>* The <b>hiliteColor</b> of a <keyword tag="graphic">graphic</keyword> outlines its marker shapes. (The <b>hiliteColor</b> has no effect unless the <glossary tag="graphic">graphic's</glossary> <property tag="style">style</property> is "curve" or "polygon" and its <property tag="markerDrawn">markerDrawn</property> property is true.)</p><p/><p>* The <b>hiliteColor</b> of a <keyword tag="player">player</keyword> or <glossary tag="EPS">EPS object</glossary> has no effect.</p><p/><p>* The <b>hiliteColor</b> of an <keyword tag="image">image</keyword> is the third color in the <glossary tag="image">image's</glossary> <glossary tag="color palette">color palette</glossary>.</p><p/><p>If the object's <b>hilitePattern</b> is set, the pattern is shown instead of the color specified by <b>hiliteColor</b>.</p><p/><p>The global <b>hiliteColor</b> <glossary tag="property">property</glossary> specifies the background color of <property tag="selected">selected</property> text in <glossary tag="field">fields</glossary> whose <b>hiliteColor</b> is empty, but does not affect other <property tag="hilite">highlighted</property> <glossary tag="object">objects</glossary>.</p><p/><p><b>Changes:</b></p><p>The ability of an object to inherit its <b>hiliteColor</b> from the <glossary tag="object">object's</glossary> <property tag="owner">owner</property> was introduced in version 1.1. In previous versions, if an <glossary tag="object">object's</glossary> <b>hiliteColor</b> was empty, the setting of the <command tag="global">global</command> <b>hiliteColor</b> <glossary tag="property">property</glossary> was used instead.</p><p/><p>The <b>borderColor</b>'s effect on grid lines in <glossary tag="field">fields</glossary> was introduced in version 2.0. In previous versions, the color of the grid lines was determined by the <glossary tag="field">field's</glossary> <property tag="hiliteColor">hiliteColor</property> <glossary tag="property">property</glossary>.</p>
  </description>
</doc>