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

# XmTextFieldSetStringWcs(3)

A TextField function that sets a wide character string value

## NAME

**XmTextFieldSetStringWcs** — A TextField function that sets a wide character string value

## SYNOPSIS

```
#include <Xm/TextF.h>
void XmTextFieldSetStringWcs(
Widget widget,
wchar_t *wcstring);
```

## DESCRIPTION

**XmTextFieldSetStringWcs** sets the wide character string value of the TextField widget. This routine calls the widget's **XmNvalueChangedCallback** and verification callbacks, either **XmNmodifyVerifyCallback** or **XmNmodifyVerifyCallbackWcs**, or both. If both verification callback lists are registered, the procedures of the **XmNmodifyVerifyCallback** list are executed first and the resulting data is passed to the **XmNmodifyVerifyCallbackWcs** callbacks. It also sets the insertion cursor position to the beginning of the string and calls the widget's **XmNmotionVerifyCallback** callbacks.

- *widget*

  Specifies the TextField widget ID

- *wcstring*

  Specifies the wide character string value

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

## RELATED

[**XmTextField**(3)](/XmTextField/3.md) and [**XmTextFieldSetString**(3)](/XmTextFieldSetString/3.md).
