<doc>
  <legacy_id>1209</legacy_id>
  <name>pulldown</name>
  <type>command</type>
  <syntax>
    <example>pulldown <i>stack</i></example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Menus</category>
  </classification>
  <references>
    <property tag="menuMode">menuMode Property</property>
    <command tag="option">option Command</command>
    <command tag="popup">popup Command</command>
    <property tag="style">style Property</property>
    <message tag="menuPick">menuPick Message</message>
    <property tag="menuHistory">menuHistory Property</property>
    <property tag="menuMouseButton">menuMouseButton Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Displays a pulldown <keyword tag="menu">menu</keyword> whose whose <glossary tag="menu item">menu items</glossary> are <glossary tag="button">buttons</glossary> in a <object tag="stack">stack</object>.</summary>
  <examples>
    <example>pulldown stack "See Also"</example>
  </examples>
  <description>
    <p>Use the <b>pulldown</b> <glossary tag="command">command</glossary> to display a <glossary tag="stack menu">stack menu</glossary> as a pulldown <keyword tag="menu">menu</keyword> in situations where it is not possible to attach the <keyword tag="menu">menu</keyword> to a <keyword tag="button">button</keyword> (for example, if the contents of the <keyword tag="menu">menu</keyword> are not known in advance).</p><p/><p><b>Parameters:</b></p><p>The <i>stack</i> is any <href tag="reference/object_reference.rev">stack reference</href>. The <glossary tag="stack">stack's</glossary> first <keyword tag="card">card</keyword> contains a <keyword tag="button">button</keyword> for each <glossary tag="menu item">menu item</glossary> in the pulldown <keyword tag="menu">menu</keyword>.</p><p/><p><b>Comments:</b></p><p>Use the <b>pulldown</b> <glossary tag="command">command</glossary> in a <message tag="mouseDown">mouseDown</message> <glossary tag="handler">handler</glossary> to display the <keyword tag="menu">menu</keyword>:</p><p/><p><code>  on mouseDown</code></p><p><code>    pulldown stack "Lookup Options"</code></p><p><code>  end mouseDown</code></p><p/><p>While the menu is displayed, the handler pauses.</p><p/><p>The menu appears aligned with the left edge of the control containing the handler. The menu appears below the control, if there is room on the screen. Choosing a menu item from the menu sends a <b>mouseUp</b> <keyword tag="message box">message</keyword> to the <i>stack</i>.</p><p/><p><code/><b>Note:</b><code/> On <glossary tag="Mac OS">Mac OS</glossary> and <glossary tag="OS X">OS X systems</glossary>, pulldown menus in a window are drawn by the standard operating system routines if the <glossary tag="button">button's</glossary> <property tag="showBorder">showBorder</property> <glossary tag="property">property</glossary> is set to true and its <property tag="borderWidth">borderWidth</property> is not zero. Pulldown menus in the <glossary tag="menu bar">menu bar</glossary> are always drawn by the operating system.</p>
  </description>
</doc>