<doc>
  <legacy_id>2161</legacy_id>
  <name>answer color</name>
  <type>command</type>
  <syntax>
    <example>answer color [with <i>startingColor</i>]</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Windows &amp; Dialog Boxes</category>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <command tag="answer">answer Command</command>
    <property tag="backgroundColor">backgroundColor Property</property>
    <function tag="colorNames">colorNames Function</function>
    <property tag="colors">colors Property</property>
    <property tag="foregroundColor">foregroundColor Property</property>
    <keyword tag="it">it Keyword</keyword>
    <property tag="systemColorSelector">systemColorSelector Property</property>
  </references>
  <history>
    <introduced version="1.1">Added.</introduced>
    <changed version="1.1.1"></changed>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Displays the operating system's standard color-selection <glossary tag="dialog box">dialog box</glossary>.</summary>
  <examples>
    <example>answer color</example>
    <example>if theItem is "Custom Color..." then answer color</example>
    <example>answer color with "#FF0033"</example>
    <example>answer color with "AliceBlue"</example>
  </examples>
  <description>
    <p>Use the <b>answer color</b> <glossary tag="command">command</glossary> to select a custom color.</p><p/><p><b>Parameters:</b></p><p>The <i>startingColor</i> is a <href tag="reference/color_reference.rev">color reference</href> consisting of one of the following:</p><p>* a standard color name</p><p>* three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue</p><p>* an HTML-style color consisting of a hash mark (#) followed by three hexadecimal numbers, one for each of red, green, and blue.</p><p/><p><b>Comments:</b></p><p>The <b>answer color</b> <glossary tag="command">command</glossary> displays a <glossary tag="dialog box">dialog box</glossary> where the user can select a color. (This dialog box is displayed by the operating system, not by LiveCode.)</p><p/><p>The color the user chooses is placed in the <b>it</b> <glossary tag="variable">variable</glossary>. If the user cancels the <glossary tag="dialog box">dialog</glossary>, the <keyword tag="it">it</keyword> <glossary tag="variable">variable</glossary> is set to empty, and the <function tag="result">result</function> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> "Cancel".</p><p/><p>If you specify a <i>startingColor</i>, the dialog box displays that color by default.</p><p/><p>The color is returned in the form of three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue. This format can be used directly to set any color property.</p><p/><p><b>Changes:</b></p><p>The option to specify a <i>startingColor</i> was introduced in version 1.1.1. In previous versions, the <glossary tag="dialog box">dialog box</glossary> displayed white by <keyword tag="default">default</keyword>.</p>
  </description>
</doc>