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

# XmCommandGetChild(3)

A Command function that is used to access a component

## NAME

**XmCommandGetChild** — A Command function that is used to access a component

## SYNOPSIS

```
#include <Xm/Command.h>
Widget XmCommandGetChild(
Widget widget,
unsigned char child);
```

## DESCRIPTION

**XmCommandGetChild** is used to access a component within a Command. The parameters given to the function are the Command widget and a value indicating which component to access.

- *widget*

  Specifies the Command widget ID.

- *child*

  Specifies a component within the Command. The following values are legal for this parameter:

  - •

    **XmDIALOG\_COMMAND\_TEXT**

  - •

    **XmDIALOG\_PROMPT\_LABEL**

  - •

    **XmDIALOG\_HISTORY\_LIST**

  - •

    **XmDIALOG\_WORK\_AREA**

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

## RETURN

Returns the widget ID of the specified Command component. An application should not assume that the returned widget will be of any particular class.

## RELATED

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