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

# XmListSetAddMode(3)

A List function that sets add mode in the list

## NAME

**XmListSetAddMode** — A List function that sets add mode in the list

## SYNOPSIS

```
#include <Xm/List.h>
void XmListSetAddMode(
Widget widget,
Boolean state);
```

## DESCRIPTION

**XmListSetAddMode** allows applications control over Add Mode in the extended selection model. This function ensures that the mode it sets is compatible with the selection policy (**XmNselectionPolicy**) of the widget. For example, it cannot put the widget into add mode when the value of **XmNselectionPolicy** is **XmBROWSE\_SELECT**.

- *widget*

  Specifies the ID of the List widget

- *state*

  Specifies whether to activate or deactivate Add Mode. If *state* is True, Add Mode is activated. If *state* is False, Add Mode is deactivated.

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

## RELATED

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