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

# XmCreateList(3)

The List widget creation function

## NAME

**XmCreateList** — The List widget creation function

## SYNOPSIS

```
#include <Xm/List.h>
Widget XmCreateList(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
```

## DESCRIPTION

**XmCreateList** creates an instance of a List widget and returns the associated widget ID.

- *parent*

  Specifies the parent widget ID

- *name*

  Specifies the name of the created widget

- *arglist*

  Specifies the argument list

- *argcount*

  Specifies the number of attribute/value pairs in the argument list (*arglist*)

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

## RETURN

Returns the List widget ID.

## RELATED

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