<doc>
  <legacy_id>2029</legacy_id>
  <name>stack</name>
  <type>object</type>
  <syntax>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
    <synonym>window</synonym>
    <synonym>wd</synonym>
  </synonyms>
  <classification>
    <category>Objects &amp; Messages</category>
  </classification>
  <references>
    <keyword tag="templateStack">templateStack Keyword</keyword>
    <property tag="defaultStack">defaultStack Property</property>
    <property tag="mode">mode Property</property>
    <function tag="mouseStack">mouseStack Function</function>
    <function tag="revLoadedStacks">revLoadedStacks Function</function>
    <property tag="stackFileVersion">stackFileVersion 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>The basic LiveCode <glossary tag="object">object</glossary>: a window.</summary>
  <examples>
    <example>go to stack "Help"</example>
    <example>put the short name of stack 3 after field "Stacks List"</example>
  </examples>
  <description>
    <p>Use the <b>stack</b> <glossary tag="object type">object type</glossary> to display a window, <command tag="palette">palette</command>, or <glossary tag="dialog box">dialog box</glossary>.</p><p/><p><b>Comments:</b></p><p>A stack corresponds to a single window. Each LiveCode file contains one or more stacks. The first stack in a stack file is called the main stack; any other stacks in the stack file are called substacks of the main stack.</p><p/><p>Stacks contain one or more cards, and may optionally contain backgrounds.</p><p/><p><code/><b>Note:</b><code/> The type of window a <object tag="stack">stack</object> is displayed in depends on the <glossary tag="stack">stack's</glossary> <property tag="style">style</property> <glossary tag="property">property</glossary> and whether the <object tag="stack">stack</object> was opened with the <command tag="go">go</command>, <command tag="topLevel">topLevel</command>, <command tag="palette">palette</command>, <command tag="modal">modal</command>, or <command tag="modeless">modeless</command> <glossary tag="command">command</glossary>.</p><p/><p>The stack object has a number of properties and messages associated with it. To see a list of messages that can be sent to a stack as a result of user actions or internal LiveCode events, open the "LiveCode Language Dictionary" page of the main Documentation window, ensure that the stack column is visible and use sort and filter to bring the relevant entries to the top</p>
  </description>
</doc>