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

# XmSelectionBoxGetChild(3)

A SelectionBox function that is used to access a component

## NAME

**XmSelectionBoxGetChild** — A SelectionBox function that is used to access a component

## SYNOPSIS

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

## DESCRIPTION

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

NOTE: This routine is obsolete and exists for compatibility with previous releases. Instead of calling **XmSelectionBoxGetChild**, you should call **XtNameToWidget** as described in the [**XmSelectionBox**(3)](/XmSelectionBox/3.md) reference page.

- *widget*

  Specifies the SelectionBox widget ID.

- *child*

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

  - •

    **XmDIALOG\_APPLY\_BUTTON**

  - •

    **XmDIALOG\_CANCEL\_BUTTON**

  - •

    **XmDIALOG\_DEFAULT\_BUTTON**

  - •

    **XmDIALOG\_HELP\_BUTTON**

  - •

    **XmDIALOG\_LIST**

  - •

    **XmDIALOG\_LIST\_LABEL**

  - •

    **XmDIALOG\_OK\_BUTTON**

  - •

    **XmDIALOG\_SELECTION\_LABEL**

  - •

    **XmDIALOG\_SEPARATOR**

  - •

    **XmDIALOG\_TEXT**

  - •

    **XmDIALOG\_WORK\_AREA**

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

## RETURN

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

## RELATED

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