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

# XmSimpleSpinBoxSetItem(3)

set an item in the XmSimpleSpinBox list

## NAME

**XmSimpleSpinBoxSetItem** — set an item in the XmSimpleSpinBox list

## SYNOPSIS

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

## DESCRIPTION

The **XmSimpleSpinBoxSetItem** function selects an item in the list of the given XmSimpleSpinBox widget and makes it the current value.

The *w* argument specifies the widget ID.

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

## RETURN VALUE

The **XmSimpleSpinBoxSetItem** function returns no value.

## SEE ALSO

[**XmSimpleSpinBox**(3)](/XmSimpleSpinBox/3.md),

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