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

# XmDropDownGetChild(3)

A DropDown function that is used to access a component

## NAME

**XmDropDownGetChild** — A DropDown function that is used to access a component

## SYNOPSIS

```
#include <Xm/DropDown.h>
Widget XmDropDownGetChild(
Widget widget,
int child);
```

## DESCRIPTION

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

- *widget*

  Specifies the DropDown widget ID.

- *child*

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

  - •

    **XmDROPDOWN\_LABEL**

  - •

    **XmDROPDOWN\_TEXT**

  - •

    **XmDROPDOWN\_ARROW\_BUTTON**

  - •

    **XmDROPDOWN\_LIST**

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

## RETURN

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

## RELATED

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