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

# XmListSetPos(3)

A List function that makes the item at the given position the first visible position in the list

## NAME

**XmListSetPos** — A List function that makes the item at the given position the first visible position in the list

## SYNOPSIS

```
#include <Xm/List.h>
void XmListSetPos(
Widget widget,
int position);
```

## DESCRIPTION

**XmListSetPos** makes the item at the given position the first visible position in the list.

- *widget*

  Specifies the ID of the List widget.

- *position*

  Specifies the position of the item to be made the first visible item in the list. A value of 1 indicates that the first item in the list is the first visible item; a value of 2 indicates that the second item is the first visible item; and so on. A value of 0 (zero) indicates that the last item in the list is the first visible item.

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

## RELATED

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