<!-- $XConsortium: CrePuA.sgm /main/8 1996/09/08 20:34:44 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN158.rsml.1">
<RefMeta>
<RefEntryTitle>XmCreatePulldownMenu</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmCreatePulldownMenu</Function></RefName>
<RefPurpose>A RowColumn widget convenience creation function
<IndexTerm>
<Primary>XmCreatePulldownMenu</Primary>
</IndexTerm><IndexTerm>
<Primary>creation functions</Primary>
<Secondary>XmCreatePulldownMenu</Secondary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- -->
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<!-- -->
<!-- **-->
<!-- **-->
<!-- **  (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc.-->
<!-- **      All Rights Reserved.-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988 by Digital Equipment Corporation,-->
<!-- **      Maynard, MA.  All Rights Reserved.-->
<!-- **-->
<!-- **-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/RowColumn.h>
</FuncSynopsisInfo>
<FuncDef>Widget <Function>XmCreatePulldownMenu</Function></FuncDef>
<!--<ParamDef><Replaceable>parent, name, arglist, argcount</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>parent</Parameter></ParamDef>
<ParamDef>String <Parameter>name</Parameter></ParamDef>
<ParamDef>ArgList <Parameter>arglist</Parameter></ParamDef>
<ParamDef>Cardinal <Parameter>argcount</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmCreatePulldownMenu</Function> creates an instance of a
RowColumn widget of type <SystemItem Class="Constant">XmMENU_PULLDOWN</SystemItem> and returns
the associated widget ID.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">parent</Symbol></Term>
<ListItem>
<Para>Specifies the parent widget ID
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">name</Symbol></Term>
<ListItem>
<Para>Specifies the name of the created widget
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">arglist</Symbol></Term>
<ListItem>
<Para>Specifies the argument list
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">argcount</Symbol></Term>
<ListItem>
<Para>Specifies the number of attribute/value pairs in the argument list
(<Symbol Role="Variable">arglist</Symbol>)
</Para>
</ListItem>
</VarListEntry>
</VariableList>
<Para>Specifies the number of attribute/value pairs in the argument list
(<Symbol Role="Variable">arglist</Symbol>).
When this function is used to create the Pulldown
menu pane, a MenuShell widget is automatically created as the parent of the
menu pane. If the widget specified
by the <Symbol Role="Variable">parent</Symbol> parameter is a
Popup or a Pulldown menu pane, the MenuShell
widget is created as a child of the <Symbol Role="Variable">parent</Symbol> MenuShell; otherwise, it
is created as a child of the specified <Symbol Role="Variable">parent</Symbol> widget.
</Para>
<Para><Function>XmCreatePulldownMenu</Function> is
provided as a convenience function for creating RowColumn
widgets configured to operate as Pulldown menu panes and is not implemented as
a separate widget class.
</Para>
<Para>A Pulldown menu pane displays a
3-D shadow, unless the feature is disabled by the application.
The shadow appears around the edge of the menu pane.
</Para>
<Para>A Pulldown menu pane is used with submenus that are to be
attached to a CascadeButton or a
CascadeButtonGadget. This is the case for all menu panes
that are part of a PulldownMenu system (a MenuBar), the menu pane
associated with an OptionMenu, and any menu panes that cascade from
a Popup menu pane. Pulldown menu panes that are to be associated with an
OptionMenu must be created before the OptionMenu is created.
</Para>
<Para>The Pulldown menu pane must be attached to a CascadeButton or CascadeButtonGadget
that resides in a MenuBar, a Popup menu pane, a Pulldown menu pane, or an
OptionMenu. It is attached with the button resource <SystemItem Class="Resource">XmNsubMenuId</SystemItem>.
</Para>
<Para>A MenuShell widget is required between the Pulldown menu pane and its
parent.
If the application uses this convenience function for creating a
Pulldown menu pane, the MenuShell is automatically created as the real
parent of the menu pane; otherwise,
it is the application's responsibility to create
the MenuShell widget.
</Para>
<Para>To function correctly when incorporated into a menu, the Pulldown menu pane's
hierarchy must be considered. This hierarchy depends on the
type of menu system that is being built, as follows:
</Para>
<ItemizedList>
<ListItem>
<Para>If the Pulldown menu pane is to be pulled down from a MenuBar, its <Symbol Role="Variable">parent</Symbol>
must be the MenuBar.
</Para>
</ListItem>
<ListItem>
<Para>If the Pulldown menu pane is to be pulled down from a Popup or another
Pulldown menu pane, its <Symbol Role="Variable">parent</Symbol> must be that Popup or Pulldown menu pane.
</Para>
</ListItem>
<ListItem>
<Para>If the Pulldown menu pane is to be pulled down from an OptionMenu, its
<Symbol Role="Variable">parent</Symbol> must be the same as the OptionMenu parent.
</Para>
</ListItem>
</ItemizedList>
<Para>PullDown menu panes support tear-off capabilities
for tear-off menus through <Classname>XmRowColumn</Classname>
resources.
For a complete definition of RowColumn and its associated resources, see
&cdeman.XmRowColumn;.
</Para>
</RefSect1>
<RefSect1>
<Title>RETURN</Title>
<Para>Returns the RowColumn widget ID.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmCascadeButton;,
&cdeman.XmCascadeButtonGadget;,
&cdeman.XmCreateOptionMenu;,
&cdeman.XmCreatePopupMenu;,
&cdeman.XmCreateSimplePulldownMenu;,
&cdeman.XmMenuShell;,
&cdeman.XmRowColumn;, and
&cdeman.XmVaCreateSimplePulldownMenu;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
