---
name: "XmMenuPosition"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmMenuPosition"
---

# XmMenuPosition(3)

A RowColumn function that positions a Popup menu pane

## NAME

**XmMenuPosition** — A RowColumn function that positions a Popup menu pane

## SYNOPSIS

```
#include <Xm/RowColumn.h>
void XmMenuPosition(
Widget menu,
XButtonPressedEvent * event);
```

## DESCRIPTION

**XmMenuPosition** 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 *x\_root* and *y\_root* fields in the specified X event are used to determine the menu position.

- *menu*

  Specifies the PopupMenu to be positioned

- *event*

  Specifies the event passed to the action procedure which manages the PopupMenu

Which corner of the PopupMenu is positioned at the *x\_root* and *y\_root* depends on the **XmNlayoutDirection** resource of the widget from which popup occurs.

For a complete definition of RowColumn and its associated resources, see [**XmRowColumn**(3)](/XmRowColumn/3.md).

## RELATED

[**XmRowColumn**(3)](/XmRowColumn/3.md).
