<!-- $XConsortium: MenuPos.sgm /main/9 1996/09/08 20:54:01 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.MAN326.rsml.1">
<RefMeta>
<RefEntryTitle>XmMenuPosition</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmMenuPosition</Function></RefName>
<RefPurpose>A RowColumn function that positions a Popup menu pane
<IndexTerm>
<Primary>XmMenuPosition</Primary>
</IndexTerm><IndexTerm>
<Primary>RowColumn functions</Primary>
<Secondary>XmMenuPosition</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>void <Function>XmMenuPosition</Function></FuncDef>
<!--<ParamDef><Replaceable>menu, event</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>menu</Parameter></ParamDef>
<ParamDef>XButtonPressedEvent <Parameter>* event</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmMenuPosition</Function> positions a Popup menu pane using the information in the
specified event. Unless an application is positioning the menu pane
itself, it must first invoke this function before managing the PopupMenu.
The <Symbol Role="Variable">x_root</Symbol> and <Symbol Role="Variable">y_root</Symbol>
fields
in the specified
X
event are used to
determine the menu position.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">menu</Symbol></Term>
<ListItem>
<Para>Specifies the PopupMenu to be positioned
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">event</Symbol></Term>
<ListItem>
<Para>Specifies the event passed to the action procedure which manages the
PopupMenu
</Para>
</ListItem>
</VarListEntry>
</VariableList>
<Para>Which corner of the PopupMenu is positioned at the <Symbol Role="Variable">x_root</Symbol> and
<Symbol Role="Variable">y_root</Symbol>
depends on the <SystemItem Class="Resource">XmNlayoutDirection</SystemItem> resource of the widget from
which popup occurs.
</Para>
<Para>For a complete definition of RowColumn and its associated resources, see
&cdeman.XmRowColumn;.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmRowColumn;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
