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

# XmListSetHorizPos(3)

A List function that scrolls to the specified position in the list

## NAME

**XmListSetHorizPos** — A List function that scrolls to the specified position in the list

## SYNOPSIS

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

## DESCRIPTION

**XmListSetHorizPos** sets the **XmNvalue** resource of the horizontal ScrollBar to the specified position and updates the visible portion of the list with the new value if the List widget's **XmNlistSizePolicy** is set to **XmCONSTANT** or **XmRESIZE\_IF\_POSSIBLE** and the horizontal ScrollBar is currently visible. This is equivalent to moving the horizontal ScrollBar to the specified position.

- *widget*

  Specifies the ID of the List widget

- *position*

  Specifies the horizontal position

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

## RELATED

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