Text widget

A Text widget allows a user to edit multiple or single lines of text.

In single-line mode, it is typically used to enter a short string, perhaps a response to a question.

In multiple-line mode, it is intended to provide the basis of a complete text editor. The Callback resources provide text verification capabilities, together with motion tracking if so required.

For more information, consult XmText(3X) in the OSF/Motif Programmer's Reference Manual.

NOTES

The Activate callback is bound to the key and is only appropriate for single-line text widgets.

The Motif Text widget has a rich set of default translations and associated actions and hence it is much better to use the built-in Text widget than attempting to write a text editor from scratch.

See also: