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

# XmFileSelectionBoxGetChild(3)

A FileSelectionBox function used to access a component

## NAME

**XmFileSelectionBoxGetChild** — A FileSelectionBox function used to access a component

## SYNOPSIS

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

## DESCRIPTION

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

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

- *widget*

  Specifies the FileSelectionBox widget ID.

- *child*

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

  - •

    **XmDIALOG\_APPLY\_BUTTON**

  - •

    **XmDIALOG\_CANCEL\_BUTTON**

  - •

    **XmDIALOG\_DEFAULT\_BUTTON**

  - •

    **XmDIALOG\_DIR\_LIST**

  - •

    **XmDIALOG\_DIR\_LIST\_LABEL**

  - •

    **XmDIALOG\_FILTER\_LABEL**

  - •

    **XmDIALOG\_FILTER\_TEXT**

  - •

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

## RETURN

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

## RELATED

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