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

# XmCreateCommandDialog(3)

The Command CommandDialog convenience creation function

## NAME

**XmCreateCommandDialog** — The Command CommandDialog convenience creation function

## SYNOPSIS

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

## DESCRIPTION

**XmCreateCommandDialog** is a convenience function that creates a DialogShell and an unmanaged Command child of the DialogShell. A CommandDialog is used for entering commands for processing.

Use **XtManageChild** to pop up the CommandDialog (passing the Command as the widget parameter); use **XtUnmanageChild** to pop it down.

**XmCreateCommandDialog** forces the value of the Shell resource **XmNallowShellResize** to True.

- *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 Command and its associated resources, see [**XmCommand**(3)](/XmCommand/3.md).

## RETURN

Returns the Command widget ID.

## RELATED

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