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

# XmComboBoxSetItem(3)

set an item in the XmComboBox list

## NAME

**XmComboBoxSetItem** — set an item in the XmComboBox list

## SYNOPSIS

```
#include <Xm/ComboBox.h>
void XmComboBoxSetItem(
Widget w,
XmString item);
```

## DESCRIPTION

The **XmComboBoxSetItem** function selects an item in the XmList of the given XmComboBox widget and makes it the first visible item in the list.

The *w* argument specifies the XmComboBox widget ID.

The *item* argument specifies the **XmString** for the item to be set in the XmComboBox. If the *item* is not found on the list, **XmComboBoxSetItem** notifies the user via the **XtWarning** function.

## RETURN VALUE

The **XmComboBoxSetItem** function returns no value.

## SEE ALSO

[**XmComboBoxAddItem**(3)](/XmComboBoxAddItem/3.md), [**XmComboBoxDeletePos**(3)](/XmComboBoxDeletePos/3.md), [**XmComboBoxSelectItem**(3)](/XmComboBoxSelectItem/3.md); [**XtWarning**(3)](/XtWarning/3.md). in the  CAE Specification,  Window Management: X Toolkit Intrinsics.
