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

# XmListUpdateSelectedList(3)

A List function that updates the XmNselectedItems resource

## NAME

**XmListUpdateSelectedList** — A List function that updates the XmNselectedItems resource

## SYNOPSIS

```
#include <Xm/List.h>
void XmListUpdateSelectedList(
Widget widget);
```

## DESCRIPTION

**XmListUpdateSelectedList** frees the contents of the current **XmNselectedItems** list. The routine traverses the **XmNitems** list and adds each currently selected item to the **XmNselectedItems** list. For each selected item, there is a corresponding entry in the updated **XmNselectedItems** list.

- *widget*

  Specifies the ID of the List widget to update

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

## RELATED

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