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

# XmCreateContainer(3)

The Container widget creation function

## NAME

**XmCreateContainer** — The Container widget creation function

## SYNOPSIS

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

## DESCRIPTION

**XmCreateContainer** creates an instance of a Container 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 Container and its associated resources, see [**XmContainer**(3)](/XmContainer/3.md).

## RETURN

This function returns the Container widget ID.

## RELATED

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