You will probably not find too many reasons to write your own text widget. After all, the standard Motif widget set already provides a variety of editable and noneditable text widgets. However, even if you do not write a text widget, you may end up writing a widget that contains a textual component. For example, perhaps the widget you are writing will display a caption or a title.
This chapter explains how to handle text in Motif widgets. In particular, this chapter will explore the following topics:
For demonstration purposes, the following subsections examine the ExmString widget.