<doc>
  <legacy_id>2354</legacy_id>
  <name>default</name>
  <type>keyword</type>
  <syntax>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Writing LiveCode</category>
    <category>Windows &amp; Dialog Boxes</category>
  </classification>
  <references>
    <control_st tag="switch">switch Control Structure</control_st>
    <property tag="default">default 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>Used with the <property tag="decorations">decorations</property> <glossary tag="property">property</glossary> to specify the standard appearance for a window type. When used within a <control_st tag="switch">switch</control_st> <glossary tag="control structure">control structure</glossary>, specifies a section of <glossary tag="statement">statements</glossary> to be <glossary tag="execute">executed</glossary> in all cases.</summary>
  <examples>
    <example>set the decorations of stack "Main" to default</example>
  </examples>
  <description>
    <p>Use the <b>default</b> <glossary tag="keyword">keyword</glossary> to set a <glossary tag="stack window">stack window</glossary> to a normal window appearance.</p><p/><p><b>Comments:</b></p><p>An editable window whose <b>decorations</b> <glossary tag="property">property</glossary> is set to default has a title bar, <glossary tag="close box">close box</glossary>, <glossary tag="zoom box">zoom box</glossary>, and <glossary tag="collapse box">collapse box</glossary> (on <glossary tag="Mac OS">Mac OS systems</glossary>), or a <glossary tag="title bar">title bar</glossary>, <glossary tag="minimize button">minimize button</glossary>, <glossary tag="maximize button">maximize button</glossary>, and <glossary tag="menu bar">menu bar</glossary> (on <glossary tag="Unix">Unix</glossary> and <glossary tag="Windows">Windows systems</glossary>). A <command tag="palette">palette</command>, <command tag="modal">modal</command>, or <command tag="modeless">modeless</command> window whose <property tag="decorations">decorations</property> is set to default has a title bar.</p><p/><p>If a <b>switch</b> <glossary tag="control structure">control structure</glossary> has a <b>default</b> section, the <glossary tag="statement">statements</glossary> in the <b>default</b> section are <glossary tag="execute">executed</glossary> if no <b>break</b> <glossary tag="statement">statement</glossary> has been encountered yet in the <control_st tag="switch">switch</control_st> <glossary tag="control structure">control structure</glossary>. (Usually, there is a <control_st tag="break">break</control_st> <glossary tag="statement">statement</glossary> within each <keyword tag="case">case</keyword> section, so the <b>default</b> section is <glossary tag="execute">executed</glossary> only if none of the <keyword tag="case">case</keyword> conditions is true.)</p>
  </description>
</doc>