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

# XmAddToPostFromList(3)

a RowColumn function that makes a menu accessible from more than one widget

## NAME

**XmAddToPostFromList** — a RowColumn function that makes a menu accessible from more than one widget

## SYNOPSIS

```
#include <Xm/RowColumn.h>

void XmAddToPostFromList(
Widget menu,
Widget post_from_widget);
```

## DESCRIPTION

**XmAddToPostFromList** makes a menu accessible from more than one widget. After a menu is once created, this function may be used to make that menu accessible from a second widget. The process may be repeated indefinitely. In other words, where an application would use **XmCreatePopupMenu** or **XmCreatePulldownMenu** or their equivalent to create a new menu identical to one that already exists, it can use this function to reuse that earlier menu.

If *menu* refers to a Popup menu, then the *post\_from\_widget* widget can now pop up the specified menu. The actual posting of the menu occurs as it always does, either through an event handler, or the automatic popup menu support (see the [**XmRowColumn**(3)](/XmRowColumn/3.md) reference page).

If *menu* refers to a Pulldown menu, its ID is placed in the **XmNsubMenuId** resource of the specified *post\_from\_widget*. In this case, the *post\_from\_widget* widget must be either a CascadeButton or a CascadeButtonGadget.

Note that this function manipulates the internal structures themselves, not a copy of them.

- *menu*

  Specifies the ID of the RowColumn widget containing the menu (Popup or Pulldown) to be made accessible from the widget.

- *post\_from\_widget*

  Specifies the widget ID of the widget which will now be able to post the menu specified by *menu*.

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

## RELATED

[**XmGetPostedFromWidget**(3)](/XmGetPostedFromWidget/3.md), [**XmRemoveFromPostFromList**(3)](/XmRemoveFromPostFromList/3.md), and [**XmRowColumn**(3)](/XmRowColumn/3.md).
